Operating System - HP-UX
1748227 Members
4489 Online
108759 Solutions
New Discussion

Re: Error : Stty : Not a typewriter

 
SOLVED
Go to solution
GINE
New Member

Error : Stty : Not a typewriter

Hi,

I'm getting errors when I run my shell script. The error message is show as below:

------- Warning Messages (rj 3 cd=0) ------

stty: : Not a typewriter
stty: : Not a typewriter
Unable to open/complete connection to the backend.

Reporting Routine: TCP063_ListenForConnection().

Called Routine : TCP061_ListenForConnection().

Error return code: 6013

System diagnostics: Error 0


Thanks and Best Regards,
Gine
1 REPLY 1
James R. Ferguson
Acclaimed Contributor
Solution

Re: Error : Stty : Not a typewriter

Hi:

The error comes from invoking 'stty' in an environment where stdin is not a terminal.
This error is commonly seen when using the 'su - user -c command' form of 'su'. The most appropriate way to eliminate the error is to conditionally call 'stty' -- something like:

if [ -t 0 ]
then
stty...
fi

Regards!

...JRF...