Kbase 15647: STTY: Not a typewriter - remove stty commands from .cshrc
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
STTY: Not a typewriter - remove stty commands from .cshrc
If you have a customer who is getting the error:
STTY: not a typewriter" or U:STTY:ERROR:Invalid Argument error message
when they are trying to output to a printer, or
executing any other command that causes a new shell
to spawn, check to see if they are running in the
C-Shell. When running in the C-Shell, .cshrc, which
is located in the user's home directory, is executed
each time a new shell is spawned. This error results
from stty commands in the .cshrc file being executed. To
solve the problem, move the stty commands from .cshrc to
the .login file also found in the user's home directory.
That way, the stty commands will only be executed once.
This should fix the problem.
To determine what Shell you are running under, try
executing the command: echo $SHELL. /bin/sh is the
Bourne Shell and /bin/csh represents the C-Shell.
The /etc/passwd file determines which shell takes
affect during your interactive UNIX session, although
it can be overridden at the UNIX prompt, so this file
may not solely determine what shell they are running
at that particlar time.
These same behaviors can be found when using the korn shell.
You can also find stty commands in the .kshrc file which
may be inconsistant with what is found in the your .login
file. These inconsistancies may cause either of the two above error
messages when trying to use the unix silent command from the procedure
editor.
Progress Software Technical Support Note # 15647