nohup process hangs


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting nohup process hangs
# 1  
Old 11-01-2005
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
# 2  
Old 11-02-2005
"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  
Old 11-02-2005
Sorry about the slang...but thanks for the input.

Sully
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Running process in nohup

Hi All, I am facing issue in running a process in nohup. I ran a process in terminal since it is taking too long to complete I need to make it as background and nohup. I tried below and was able to make it in back ground 1. Cntrl + Z 2. bg I am using Korn Shell so disown is not working... (5 Replies)
Discussion started by: arunkumar_mca
5 Replies

2. Shell Programming and Scripting

Storing process Id of a nohup command

Hi, I am running below code: for i in `ls` do nohup sqlldr userid=apps/apps data=data01.dat log=my1.log control=my.ctl bad=my1.bad direct=yes silent=all parallel=true & done This will run the sqlldr command in parallel as a background process. I want to store the process Id each... (7 Replies)
Discussion started by: Pratiksha Mehra
7 Replies

3. Shell Programming and Scripting

How to pause process running under nohup?

Hi ALL, Is there any way to pause a running process under nohup ? I have fired a build commands with required flags under nohup as below. now how can I pause the started build process. nohup make DEVICE=ap DEBUG=1 & I understand we can use ctrl + z to pause a foreground process... (3 Replies)
Discussion started by: useless79
3 Replies

4. UNIX for Dummies Questions & Answers

Can I convert a foreground process to NOHUP ?

OS : AIX 6.1/Solaris 10 After I started running a shell script, I've realized that it will take another 5 hours to complete. Is there anyway I could convert this foreground process to run in nohup mode so that I can go home peacefully ? I have the process ID $ ps -ef | grep... (4 Replies)
Discussion started by: kraljic
4 Replies

5. UNIX for Dummies Questions & Answers

Run process with nohup every certain time

Hi, I need execute a script every 30 minutes. As might be done without using cron Thx. (6 Replies)
Discussion started by: pepeli30
6 Replies

6. UNIX for Advanced & Expert Users

Bringing a nohup process to foreground

Hi, I have used nohup command to run a process in background. i ran successfully and i exit from that terminal. But when i login for the next time I am not able to see the process but it is working, since I am getting a e-mail alert for error issue. Please let me know how to bring that process... (3 Replies)
Discussion started by: mbguy
3 Replies

7. UNIX for Advanced & Expert Users

nohup and background process

What is the difference between running a process using nohup and running a process in background ? Please explain (6 Replies)
Discussion started by: srksn
6 Replies

8. AIX

AIX hangs through the boot process

To All: I have this AIX machine (see boot process below). The problem was it hangs at: The ctrmc Subsystem has been started. Subsystem PID is 11906.. I checked with other forums but their advise were just "strong punches in the air" with no specific explanation. I really appreciate if... (6 Replies)
Discussion started by: aix_xia
6 Replies

9. Shell Programming and Scripting

pid of nohup process

I want to print the pid of a nohup process to a file so later I can use the list of pid's in that file to stop the background processes again. I use ksh on AIXv5.3: nohup /start/script.ksh 1>/dev/null 2>&1 print $$ > .pid nohup /start/script2.ksh 1>/dev/null 2>&1 print $$ >> .pid But... (2 Replies)
Discussion started by: rein
2 Replies

10. HP-UX

vi editor hangs process on HP-UX J6700

I have an HP J6700 using an Emulex L9002 fc 2gb HBA . The OS is 10.26 secured OS for Military applications. When we run a vi editor on our internal disk the 512k it works fine (internal disk is 18gb). When I run it on a external raid it hangs the process. its not hanging the raid but the... (1 Reply)
Discussion started by: diskman
1 Replies
Login or Register to Ask a Question