Operating System - HP-UX
1748224 Members
4486 Online
108759 Solutions
New Discussion юеВ

Re: login. STDERR -->> stty: : Not a typewriter Not a terminal

 
SOLVED
Go to solution
sysad_boy
Frequent Advisor

login. STDERR -->> stty: : Not a typewriter Not a terminal

Hi Gurus,

How do I get rid of this error:

login. STDERR -->>
stty: : Not a typewriter
Not a terminal

What should be my terminal settings? is there anything that I should edit under /etc/profile and or .profile file of the user experiencing this error message?


TIA
7 REPLIES 7
Torsten.
Acclaimed Contributor
Solution

Re: login. STDERR -->> stty: : Not a typewriter Not a terminal

Where and when did you get this message?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sysad_boy
Frequent Advisor

Re: login. STDERR -->> stty: : Not a typewriter Not a terminal

I am using ControlM to run my script.

When ControlM logs into the box to call and execute the script, this error appears in my log.
sysad_boy
Frequent Advisor

Re: login. STDERR -->> stty: : Not a typewriter Not a terminal

this is the exact error that appears:

20100106 143401 Failed to submit job.
20100106 143401 Found empty sysout file.
20100106 143401 Possible cause of problem:
1. Job submission aborted due to error is user profile.
2. Job submission aborted due to error is Autoedit variables.
login. STDOUT -->>
logout
login. STDERR -->>
ksh: /CTRLM/Agent/Unix/ctm/sysout/test_sh.LOG_00go35_00001: cannot create
johnsonpk
Honored Contributor

Re: login. STDERR -->> stty: : Not a typewriter Not a terminal

Hi ,

It is probably because of your stty settings in the ctlM user's profile

Check this thread
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=72142

Rgds!
Johnson
James R. Ferguson
Acclaimed Contributor

Re: login. STDERR -->> stty: : Not a typewriter Not a terminal

Hi:

I suspect you now know the answer since you also posted into this very old thread:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=72142

Essentially, anytime you cause your '.profile' to be sourced, (because you did something like 'su - username -c somescript') _but_ your script isn't associated with a terminal because you 'cron'ed it, then the 'stty' process which runs in your '.profile' complains that the environment isn't interactive (i.e. "not a typewriter").

Regards!

...JRF...
Bill Hassell
Honored Contributor

Re: login. STDERR -->> stty: : Not a typewriter Not a terminal

The error occurs because your code is logging in as a user but /etc/profile and/or .profile have not been cleaned up for batch mode usage. This is a very common error in all flavors of Unix but default profiles continue to ship without the appropriate wrapper for terminal-only commands such as stty, tabs, tset and so on.

For HP-UX logins that use the POSIX or ksh shell, you can use tty to determine if a terminal (interactive) session is active during the profile setup, something like this:

tty -s
if [ $? -eq 0 ]
then
stty ...
tabs

fi

Be sure to look at /etc/profile as well as .profile (and other shell profiles if used).


Bill Hassell, sysadmin
Unni Krishnan
New Member

Re: login. STDERR -->> stty: : Not a typewriter Not a terminal

Check if any etrust programs are untrusted and also restart etrust program.
I had similar issue with control-m and resolved after the etrust restart.