The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
nohup.out ramky79 AIX 5 10-23-2007 03:28 AM
nohup - help! bluemoon1 UNIX for Dummies Questions & Answers 9 10-11-2007 08:49 PM
nohup ( no log message) mike1022 Shell Programming and Scripting 1 09-16-2006 05:55 PM
Nohup miwinter UNIX for Dummies Questions & Answers 3 07-21-2006 02:20 AM
nohup usage.. charan81 UNIX for Dummies Questions & Answers 2 05-21-2006 11:41 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-18-2006
Registered User
 

Join Date: May 2005
Posts: 19
Help on nohup

Hi

I submitted a long running executable without using nohup. Now, is there any way I can assure to keep that process ON even if my session gets killed?

Thanks
Bobby
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-18-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 923
  • ctrl-z to suspend the process
  • bg to put it in the background
  • disown to disown it
It's a bit late to redirect stdin, stdout, and stderr now that it's already running. Just have to hope those closing those won't kill it when you logout. In ssh, it can actually hang the session waiting for things still using the console to finish...
Reply With Quote
  #3 (permalink)  
Old 10-18-2006
Registered User
 

Join Date: May 2005
Posts: 19
Hey

I tried ctrl-z but its not responding to it. Normaly the process stops and gives new prompt, right? There on the new prompt only we have to run bg. Am I correct? Also I could not find anything like disown!!! I am using SunOS. What is the equalent command for disown there? If it helps to give an answer, I am using shell csh. One more question is, if I just make the process run in the background, will it guarentee that it will not get killed if the session closes. Any way in my case I am not worried about the o/p that comes on stderr or stdout. If there is any way I can assure the process to go till completion plese help out.


Thanks
Reply With Quote
  #4 (permalink)  
Old 10-18-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 923
this thread suggests that SunOS isn't so strict about killing processes when the shell closes. Perhaps nohup is different in csh than bash.

In any case, all of the suggestions I could make would be made as you run the process, not after. This is a bit too late.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:36 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0