If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > nohup doesn't work, why

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-06-04, 13:05
sherry88 sherry88 is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
Exclamation nohup doesn't work, why

I tried to use nohup to background running a process. However, after I exiting the shell, the process dies. Any idea?

Here is the one that always failed:
$ nohup bnddc_510.sh&
15240
$ Sending output to nohup.out

$ ptree|grep 15240
15240 /usr80/apl/bse/cware/baan/std/bnddc510 -f /usr80/apl/bse/cware/baan
15241 /bin/sh /usr80/apl/bse/bin/bshell6.2.solar 15240 321 7 8 -set SPE
15242 /usr80/apl/bse/bin/bshell6.2 15240 321 7 8 -set SPECIAL_SERVER=
15243 oracle8 (cware510[cwaretst]:15242/PIPE<cwaretst@garnet:15240>
Reply With Quote
  #2 (permalink)  
Old 02-09-04, 13:16
msuluhan msuluhan is offline
Registered User
 
Join Date: Jan 2004
Posts: 18
what kind of processes do u run in your shell script?

for example I have a shell script to run some j2ee applications, but the old java version had a bug so I cannot logout shell if I logout my processes will die like yours, so I have to run from system console without logout
__________________
Murat SULUHAN
Live Free or Die
Reply With Quote
  #3 (permalink)  
Old 02-17-04, 07:58
disem disem is offline
Registered User
 
Join Date: Feb 2004
Location: Paraguay
Posts: 1
Re: nohup doesn't work, why

what shell are you using ? nohup only works for sh (and bash). It doesn't works with ksh.
Reply With Quote
  #4 (permalink)  
Old 02-17-04, 08:33
Damian Ibbotson Damian Ibbotson is offline
Padawan
 
Join Date: Jun 2002
Location: UK
Posts: 525
Re: nohup doesn't work, why

Quote:
nohup only works for sh (and bash). It doesn't works with ksh.
?
Reply With Quote
  #5 (permalink)  
Old 02-17-04, 11:01
TimoV TimoV is offline
Registered User
 
Join Date: Dec 2003
Posts: 56
Quote:
what shell are you using ? nohup only works for sh (and bash). It doesn't works with ksh.
Strange I only use ksh and nohup has always worked for me.....
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On