From: ken.cunefare@me.gatech.edu (Kenneth A. Cunefare)
Subject: Dying "nohup"ed processes
Date: Tue, 6 Sep 94 15:48:23 GMT [thread overview]
Message-ID: <ken.cunefare.1129254143A@news.gatech.edu> (raw)
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
reply other threads:[~1994-09-06 15:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox