![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
"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. |
|
#3
|
|||
|
|||
|
Sorry about the slang...but thanks for the input.
Sully |
|||
| Google The UNIX and Linux Forums |