Kbase P151697: Script is returning messages that say " STTY: NO SUCH DEVICE" when run on Solaris
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  01/09/2009 |
|
Status: Unverified
SYMPTOM(s):
Script is returning messages that say " STTY: NO SUCH DEVICE" when run on Solaris
Also getting "press the space bar to continue" messages
Script is run where the first argument to su is a dash (-).
FACT(s) (Environment):
Script was running under another user before and was not having an issue.
Solaris
Progress/OpenEdge Product Family
CAUSE:
The following statements are true if the login shell is /usr/bin/sh or an empty string
(which defaults to /usr/bin/sh) in the specific user's password file entry.
If the first argument to su is a dash (-), the environment will be changed to what would be
expected if the user actually logged in as the specified user. Otherwise, the environment
is passed along, with the exception of $PATH, which is controlled by PATH and SUPATH in /etc/default/su.
So the su - user logs in with new users profile settings as this is just like starting a new session for the user.
FIX:
Remove the '-' parameter from the command line.
ie:
org:
su - promon dbname (This is just like starting a new session at log in.)
changed to:
su promon dbname ( This preserves the previous sessions settings, for the new user)