Operating System - HP-UX
1753837 Members
8655 Online
108806 Solutions
New Discussion юеВ

Re: Cron spawning multiple processes

 
Adelheid
Occasional Advisor

Re: Cron spawning multiple processes

Hi Dennis,
I commented out the hostnames :-)

I have changed the + to a - and let it run again, I am not sure what I am looking for in terms of a trace, or how to get more info. Anyhow, this is the output from the ps:

r0_pdms 22869 2716 0 11:45:00 ? 00:00 sh -c (. $HOME/set_dmsenvtest.sh)
r0_pdms 22871 22869 1 11:45:00 ? 00:00 sh -c (. $HOME/set_dmsenvtest.sh)
r0_pdms 22872 22871 1 11:45:00 ? 00:00 sh -c (. $HOME/set_dmsenvtest.sh)
r0_pdms 22874 22872 0 11:45:00 ? 00:00 sh -c (. $HOME/set_dmsenvtest.sh)
r0_pdms 22875 22874 0 11:45:00 ? 00:00 sh -c (. $HOME/set_dmsenvtest.sh)

Thanks
Adelheid
Occasional Advisor

Re: Cron spawning multiple processes

ah, found it....uploaded :-)
Dennis Handly
Acclaimed Contributor

Re: Cron spawning multiple processes

>found it....uploaded :-)

Where? /var/spool/cron/tmp/? Or $HOME/cron_log/cron.log?

You seemed to get to ${DB2HOME}/sqllib/db2profile & /opt/IBM/db2ia32/sqllib/userprofile

It might help to have "set -x" in the latter.

>export DB2CODEPAGE=1051 shows you got back.

>HARES=/opt/VRTSvcs/bin/hares

It seems you got to the end of the file.

There seems to be something broken with the shell. You might try making sure it and cron hasn't be corrupted:
swverify OS-Core.UX2-CORE OS-Core.CMDS2-MIN

Or you might want to use tusc on cron to see why those shells get forked.
tusc -fp -ea -o tusc.out 2716 #cron-PID

You can kill tusc after you see another bunch of nested shells hung.

I've had cases with the scummy C shell where it hangs. You could try redirecting stdin to /dev/null:
(. $HOME/set_dmsenv.sh; tb_monitor.sh) >> $HOME/cron_log/cron.log 2>&1 < /dev/null