1832880 Members
2389 Online
110048 Solutions
New Discussion

Re: NOHUP issues

 
SOLVED
Go to solution
ShivKumar_1
Frequent Advisor

NOHUP issues

Hi experts,
I have a question with regard to 'nohup' when the users login & execute the command as nohup even the jobs stop when they logout.
Is there a patch to fix this?

Thnks
SK
4 REPLIES 4
Jeff Schussele
Honored Contributor
Solution

Re: NOHUP issues

Hi SK,

nohup by itself only causes the program to ignore hangups & quits. It does not cause it to ignore interrupts.
To do that run in the background as well...

nohup command &

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Frank Slootweg
Honored Contributor

Re: NOHUP issues

Is your problem now fixed?
John Payne_2
Honored Contributor

Re: NOHUP issues

SK,

We have seen this problem as well. For an example, when I do a 'nohup sar 1 90 &' and exit my shell, the sar dies.

We opened an issue with the response center, and they escalated it to engineering. It is now a defect fix that they are working on. (works in some places, but not in others.)

We found that if you open a shell from your current shell, and run the program, and then exit that child shell, nohup works as expected... You might try this as a work around for now, they don't expect the patch to be ready for a couple months...

Hope it helps

John
Spoon!!!!
Eric Porter
New Member

Re: NOHUP issues

An alternative is to run the command/script as an "at" job.

This completely detaches it from the terminal, and when you logout it will have no impact.

Eric