Re: Can some Guru explain me this error or where should I look for some error guides

From: Dave.Zarnoch@SUNGARD.COM
Date: Thu Jun 27 2002 - 13:23:44 EDT


Got this from an old document:

Q4. Why do I get: 'stty: tcgetattr: Not a Typewriter'?

A. The stty errors that various folks are now seeing on AIX 4 on [RS6000s]
are a result in a change in the way AIX is handling the stty command;
the reason many of us are seeing the error messages is that alot of
our older accounts have an stty command in their .kshrc to set up
things like erase, kill, interrupt, and suspend characters.

When a program forks a new shell (such as when you want to run one
command from inside another), the new ksh will run the commands in
your .kshrc file when it starts. On AIX 3, if .kshrc had an stty
command, the child shell did not see (or at least did not report)
any error running that command. That's not true on AIX 4 -- they
are quite visible! When you see these errors, it may not be apparent
that they are coming from ksh.

The solution, if you've got an stty command in .kshrc, is simply to
move that command out of that file, and put it into a file which is
only run when you login -- your .profile.

If you use an X terminal, you'll also want to put into your .Xresources
file a line that sets the tty modes, since .profile is not being read
when you start your X session (that's why we originally had these stty
commands in .kshrc instead!). You can duplicate them from the stty
command that you're moving into .profile. For example, if you use
control-H for erase, control-X for line kill, control-C for interrupt,
and control-Z for suspending the shell, you would put the following
stty command in .profile and .XTerm*ttyModes entry into .Xresources

stty erase ^H kill ^X intr ^C susp ^Z
XTerm*ttyModes: erase ^H kill ^X intr ^C susp ^Z

DaveZ

                    "Mondal,
                    Subrata" To: aix-l@Princeton.EDU
                    <SMondal@IMF. cc:
                    ORG> Subject: Can some Guru explain me this error or where should
                    Sent by: IBM I look for some error guides
                    AIX
                    Discussion
                    List
                    <aix-l@Prince
                    ton.EDU>

                    06/27/2002
                    12:43 PM
                    Please
                    respond to
                    IBM AIX
                    Discussion
                    List

I have a Job in crontab at 2:00 PM everyday
and I get this error message :

*****
Message 2:
>From daemon Wed Jun 26 14:18:33 2002
Date: Wed, 26 Jun 2002 14:18:32 -0400 (EDT)
From: daemon
To: belrates

stty: tcgetattr: Not a typewriter

*************************************************
Cron: The previous message is the standard output
      and standard error of one of your cron commands.
*****

What do I interpret from this and what should be teh remedy.

Subrata



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:01 EDT