From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1012a6,a5584823413653f6,start X-Google-Attributes: gid1012a6,public X-Google-Thread: fee84,a5584823413653f6,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-09-07 11:28:28 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!news.cac.psu.edu!news.pop.psu.edu!ctc.com!newsfeed.pitt.edu!gatech!gt-news!news!ken.cunefare From: ken.cunefare@me.gatech.edu (Kenneth A. Cunefare) Newsgroups: comp.unix.shell,comp.unix.osf.osf1 Subject: Dying "nohup"ed processes Followup-To: comp.unix.shell Date: Tue, 6 Sep 94 15:48:23 GMT Organization: Georgia Tech Message-ID: NNTP-Posting-Host: kcunefare.me.gatech.edu X-Newsreader: VersaTerm Link v1.1.3 Xref: nntp.gmd.de comp.unix.shell:15243 comp.unix.osf.osf1:5189 I am experiencing an "interesting problem" with a shell script. The script is rather long and involved, but the key problem I have is that a process spawned from within the script using "nohup" dissappears/dies if the script's invoking user logs off. The script itself is also invoked with nohup. Any ideas? Details as follows: Script is launched with nohup and put in background. Script uses ksh (for job control) Script uses nohup and & to launch a program, call it TP. Script monitors TP, waiting for a signal. When signal received, the script runs several other programs. Once these other programs are complete, the script sends a signal to proceed. Here's what happans: Say I launch the script as above, then log off and immediately log back in. After logging back in, I can use "ps" to monitor the various stages of the script execution. Generally, TP is still around at that point. However, after the last program external to TP completes, and when the script signals TP to proceed, TP rather impolitely dies. Steps I have taken: Not logging of :) Impractical. I have done some signal trapping, but if TP is receiving a signal that is causing it to die, it is not one of the trappable signals. None of the other processes die when the user logs off, and TP doesn't die until it is instructed to proceed. The script and TP execute on a DEC Alpha 3000, running OSF1. My login shell is csh. I use ksh for the script as I need scriptable job control. Any ideas? If so, please e-mail to the address below. If I can solve the problem, I will post answer to net. Thanks. Dr. Kenneth A. Cunefare, Assistant Professor Georgia Institute of Technology ken.cunefare@me.gatech.edu