The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 06:28 AM
nohup - help! bluemoon1 UNIX for Dummies Questions & Answers 9 10-11-2007 11:49 PM
nohup ( no log message) mike1022 Shell Programming and Scripting 1 09-16-2006 08:55 PM
Nohup miwinter UNIX for Dummies Questions & Answers 3 07-21-2006 05:20 AM
nohup usage.. charan81 UNIX for Dummies Questions & Answers 2 05-21-2006 02:41 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-18-2006
bobbyjohnz bobbyjohnz is offline
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
  #2 (permalink)  
Old 10-18-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,928
  • 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...
  #3 (permalink)  
Old 10-18-2006
bobbyjohnz bobbyjohnz is offline
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
  #4 (permalink)  
Old 10-18-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,928
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0