The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
AIX hangs through the boot process aix_xia AIX 6 10-21-2008 03:26 AM
pid of nohup process rein Shell Programming and Scripting 2 10-23-2007 03:42 PM
nohup and background process srksn UNIX for Advanced & Expert Users 4 09-04-2007 02:54 AM
WRQ Reflection SFTP process hangs when run using windows scheduler kapilash Windows & DOS: Issues & Discussions 0 04-27-2006 02:26 AM
vi editor hangs process on HP-UX J6700 diskman HP-UX 1 03-04-2006 02:26 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-01-2005
Registered User
 

Join Date: Nov 2005
Location: So. Fla.
Posts: 3
nohup process hangs

Hi All,

I tried searching for this, but I have yet to find anything useful. So here goes,
if a script executed from another script with nohup & hangs, does it affect the parent script? Reason I ask, we have a windows box with NFS, and we use it to store some of our files. Currently, I mount the NFS directories, using a script from the command line, after a reboot. I would like to automate this, but typically the windows box is rebooted at the same time, and if the mount gets executed prior to the windows box boot, the script hangs. I know nohup'ed processes ignore hang ups, but what happens if they hang? Any knowledge and/or guidance will be greatly appreciated.

Sully
Reply With Quote
Forum Sponsor
  #2  
Old 11-02-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,656
"hang" is not a very technical term. If a program is taking a very long time it may be doing everything right. Or it may have a bug and be in an infinite loop. nohup will certainly not help you here. No reasonable person would think that it should. But if you type a command like:
/usr/bin/cat
the program will wait for input from the tty. If you don't know that, you may be staring at a screen wait for the cat command to end. This is a special type of "hang"...waiting for tty input. Should nohup protect you from this? Maybe it should, but it is surprisingly hard to do this safely. For better or worse, nohup does not protect you from this either. You can use "at now" to run stuff completely disconnected from a tty. And you're on your own if you have infinite loops.
Reply With Quote
  #3  
Old 11-02-2005
Registered User
 

Join Date: Nov 2005
Location: So. Fla.
Posts: 3
Sorry about the slang...but thanks for the input.

Sully
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:44 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 Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0