Re: stty: : Not a typewriter (17136 Views)
Occasional Advisor
Posts: 12
Registered: ‎05-24-2012
Message 1 of 2 (17,140 Views)

stty: : Not a typewriter

Hi Gurus,


We are facing an issue while running a control-m job in hp-ux. The control-m jobs logs in as teh controlm unix account and then does an su to the application account for running the job.

The job fails with the below error - 


login. STDERR -->>

stty: : Not a typewriter

Not a terminal

stty: : Not a typewriter

stty: : Not a typewriter


Please help in resolving this issue.


Thanks in advance

Honored Contributor
Posts: 14,448
Registered: ‎05-29-2000
Message 2 of 2 (17,136 Views)

Re: stty: : Not a typewriter

[ Edited ]

The job is probably not failing due to the stty error messages.

However, the errors are caused by the archaic profiles that HP-UX has for user logins. They are designed ONLY for interactive use, not batch as in cron jobs or scripts. These programs (not a complete list) are only functional when there is a terminal connected:



 Here's a link with replacement /etc/profile and .profile listings that will skip interactive commands in batch mode:



The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.