We have an application which doesn't play well if the stty values for ROWS or COLUMNS are set. This is easy to resolve by clearing those stty flags before launching the application. However, I've got one Client system where a change to those values causes the script to exit.
We are running SCO OpenServer 5.0.X and /bin/sh.
Simply put:
cd /app_dir
stty rows 0 columns 0
exec ./startmyapp
If the rows and columns are already clear, the application runs fine. If they are currently set to some values, the stty takes affect, but the script bails back to the shell.
I've tried moving the "stty" command to the $HOME/.profile, but that also causes the user to drop to a UNIX ($) prompt instead of completing the .profile commands.
Is there some kind of trap value I'm missing here?
"Proof that there is intelligent life in Oregon. Well, Life anyway.
We are running SCO OpenServer 5.0.X and /bin/sh.
Simply put:
cd /app_dir
stty rows 0 columns 0
exec ./startmyapp
If the rows and columns are already clear, the application runs fine. If they are currently set to some values, the stty takes affect, but the script bails back to the shell.
I've tried moving the "stty" command to the $HOME/.profile, but that also causes the user to drop to a UNIX ($) prompt instead of completing the .profile commands.
Is there some kind of trap value I'm missing here?
"Proof that there is intelligent life in Oregon. Well, Life anyway.