nohup and ksh

nohup and ksh

Post by Aniekan Akpaffio » Sat, 28 May 1994 00:02:54



I know it's possible to run a job with the 'nohup' prefix such that
you can logout and have the job continue to run.  You can also set
a 'trap' in the code to ignore HUP signals BUT is it possible to
tell a program that is already running to ignore HUP signals.

Let's say you have a job that has been running for several hours and
you want to logout and have it continue to run and you don't want to
start over with 'nohup a.out'.  Is this possible under the Korn shell?

Suggestions appreciated.

 
 
 

nohup and ksh

Post by Mark R. Ludw » Mon, 06 Jun 1994 00:00:10


|> Let's say you have a job that has been running for several hours and
|> you want to logout and have it continue to run and you don't want to
|> start over with 'nohup a.out'.  Is this possible under the Korn shell?

No.  In general, if you consider other signals, it's not really a
shell issue, but the Bourne-compatible shells suffer from this the
most because they keep background jobs in the same process group as
the parent, which is what causes these background jobs to get the
SIGHUP on logout in the first place.  The csh-compatible shells put
background jobs in a different process group, so those background jobs
never see SIGHUP when the parent process exits.$$
--

   "Cigarettes ... are not a drug."  -- Tom Lorea from the Tobacco Institute

 
 
 

1. nohup (script1.ksh ; script2.ksh ) & doesn't work

hi,

I am trying to start 2 processes , one after the other but
nohup (script1.ksh ; script2.ksh ) &  doesn't work.

man nohup indicates that It should work and I know how to bypass this
problem , I am just wondering why it doesn't work.

thanks
Michael

2. 3Com NIC : 3C515-TX

3. Nohup doesn't work as I need with ksh on Solaris 2.6

4. Forbidden/You don't have permission

5. ksh, nohup, and background processes

6. Problems when removing SCSI-HDD

7. nohup, ksh, & serial line hangs

8. Compaq ProLiant 1850 and Redhat 7.3

9. nohup and ksh

10. nohup in ksh

11. nohup, ksh