Consultor Eletrônico



Kbase P140342: ABL program calls out to UNIX & gets "stty : not a typewriter" error
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   26/01/2009
Status: Unverified

SYMPTOM(s):

ABL program calls out to UNIX

The call out to UNIX invokes the "su" command

Log files show "STTY : not a typewriter" error message

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x
UNIX

CAUSE:

When the "su" command is invoked from a shell it automatically runs all standard login scripts (.profile, etc). If any of the standard login scripts attempts to invoke a command which assumes a terminal is in use (i.e. STTY) and there is no terminal because the "su" command is being invoked from within a Progress session then the "not a typewriter" error will be displayed by the underlying UNIX operating system. The error message has nothing to do with Progress.

FIX:

All standard login scripts must be modified to check and see if the login is from a true terminal or not and if not, the script must not issue any commands which assume a terminal (i.e. STTY).