Problem with bg process & SIGTTOU

From: Smith, Kevin (Kevin.Smith@sbs.siemens.co.uk)
Date: Wed Sep 24 2003 - 12:40:57 EDT


Hi All,

Can anyone please shed some light on why my KSH script which echos out some
comments as it processes. It is stopping with a SIGTTOU [Term Out] whenever
It is run it in the background and stops at the first echo statement. The
script runs perfectly in foreground. Is it some odd stty setting perhaps? My
understanding is the 2>&1 redirects STDERR and STDOUT to the logfile as I
want it to ......

root@indtr02 /usr/local/bin # nohup backup_db.ksh -b "tr01 fts01" >>
/var/adm/logs/nightly_backup.log 2>&1 &
[1] 9419
root@indtr02 /usr/local/bin # jobs
[1] + Running nohup backup_db.ksh -b "tr01 fts01" >>
/var/adm/logs/nightly_backup.log 2>&1 &
root@indtr02 /usr/local/bin #
[1] + Stopped (SIGTTOU) nohup backup_db.ksh -b "tr01 fts01" >>
/var/adm/logs/nightly_backup.log 2>&1 &
root@indtr02 /usr/local/bin #

Thanks in advance.

Kev Smith

> ----------------------------------------------------
> Kev Smith
> Unix Systems Administrator.
> Operational Support, IND Croydon.
> * E-Mail : kevin.m.smith@siemens.com
> * Tel : 0208 7604849
> * Mobile : 07808 828595
> ----------------------------------------------------
> Siemens Business Services Ltd
> This e-mail contains confidential information and is for the
> exclusive use of the addressee/s. If you are not the addressee, then any
> distribution, copying or use of this e-mail is prohibited. If received in
> error, please advise the sender and delete it immediately. We accept no
> liability for any loss or damage suffered by any person arising from use
> of this e-mail.
>
> Siemens Business Services
> Registered No: 1203466 England
> Registered Office: Siemens House, Olbury, Bracknell,
> Berkshire,
> RG12 8FZ
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:11 EDT