SUMMARY: Problem with bg process & SIGTTOU

From: Smith, Kevin <Kevin.Smith_at_sbs.siemens.co.uk>
Date: Fri Sep 26 2003 - 11:17:52 EDT
Thanks to :

DAUBIGNE Sebastien  - BOR
Andrew Hay

It turned out, that due to part of my script calling su to oracle (to call
some sqlplus), the oracle .profile had a call to tty -s which was causing
the subshell to attempt to write to the terminal. I changed the .profile to
test for a present terminal in a more effcient way and the problem has been
solved.

Thanks for the directions.

>>>

"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 &

<<

> 	----------------------------------------------------
> 	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
Received on Fri Sep 26 11:17:44 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:22 EST