1845947 Members
3920 Online
110250 Solutions
New Discussion

syslog message

 
Michael Palmgren
Frequent Advisor

syslog message

Hi!

This is the first time I get this message,
can some one tell me what it stands for, se message belove.

Jan 9 13:26:50 n09240 syslogd: restart
Jan 9 13:26:50 n09240 syslogd: the kernel messages are already disabled: Not a
typewriter

/Michael
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: syslog message

Hi Michael:

I presume that you mean "not a typewriter". This arises when non-interactive scripts attempt to do interactive things. The most common reason is sourcing (reading) a login profile that contains terminal handling code like 'stty' and 'tset'.

Rather than place common environmental variables in a user's login profile and then source that profile when processing a script in 'cron' or in an '/sbin/rc?.d' file, move the environmental variables into their own file and source that.

Alternately, if you insist on reading (sourcing) a profile, modify it to check the association of a terminal by using:

if [ -t 0 ]; then
#...you are associated with a terminal
else
#...no associated terminal!
fi

Regards!

...JRF...

Tim Sanko
Trusted Contributor

Re: syslog message

In fact you can test to see of it is a tty that the job is being run from before you run stty, or tset also.

Tim
Michael Palmgren
Frequent Advisor

Re: syslog message

Thanks