[H-GEN] Strange cron email.

Christopher Biggs chris at stallion.oz.au
Tue Jul 21 18:33:51 EDT 1998


Michael <dookie at dookie.humbug.org.au> moved upon the face of the 'Net and spake thusly:

> Hi,
> 
> I awoke to find a rather large amount of email for root thismorning, they
> were all the same as ...
> 
> 
> stdin: is not a tty

Sounds like you've put some command like resize or tset or stty or
something that wants a terminal in your (or root's) shell profile.

If you do "stty erase ^H" or something in your .bash*, then put it
inside

$TTY = `tty`  # do this once---it'll probably be tested more than once.
if [ "$TTY" != "not a tty" ] ; then stty $etc ; fi[1]

cjb.

[1] actual code may vary. YMMV. HAND.

--
 ------------------ Linux hackers do it in protected mode -------------------
 | Christopher Biggs - Software Engineer, Stallion Technologies, Australia  |
 | chris at stallion.oz.au - Ph+61-7-3270-4266 - Fx+61-7-3270-4245 - PGP&MIME  |
 ------- Mathematics and alcohol don't mix --- Never drink and derive -------





More information about the General mailing list