Operating System - HP-UX
1846768 Members
4698 Online
110256 Solutions
New Discussion

nohup command failure on HP-UX 11.00

 
SOLVED
Go to solution
Ing. Marco Tricase
Occasional Contributor

nohup command failure on HP-UX 11.00

using the following line command:
nohup /opt/tivoli/tsm/client/ba/bin/dsmc sched > /dev/null 2>&1 &
directly, the command nohup runs good, but inserting the same line inside a script, the process dsmc die at the end of the script.
TIA.
Sys Adm
3 REPLIES 3
Ralf Hildebrandt
Valued Contributor
Solution

Re: nohup command failure on HP-UX 11.00

Have you tried redirecting to a real file and check it's contents after the demise of the program invoked?
Postfix/BIND/Security/IDS/Scanner, you name it...
Stefan Farrelly
Honored Contributor

Re: nohup command failure on HP-UX 11.00


Hmm. very interesting. Certainly this should not happen normally. Ive just tested it with scripts and it works fine.

Either your dsmc program is detecting that the parent process had died (existed) and thus its parent pid process has now changed from whatever to PID 1, or it is trapping a signal that is sent to the child informing it of the death of the parent. The problem seems to lie with your dsmc program.

Instead in your script you could add in on the last line of it the command wait() which means it will not exit itself until the backgrounded process also finishes.


Im from Palmerston North, New Zealand, but somehow ended up in London...
Ing. Marco Tricase
Occasional Contributor

Re: nohup command failure on HP-UX 11.00

Hi everybody,
fortunately we have solved the problem:
the process launched by nohup doesn't run correctly because nohup doesn't read the environment variables of the root .profile.
The solution used is to create a new command file with the environment variables set and to launch it with the nohup command.
Regards.
Sys Adm