From: Andy Cohen (andyc@brandeis.edu)
Date: Wed Oct 31 2007 - 12:52:54 EST
We have a strange situation on one of our Solaris 8 machines.
We have an entry in crontab:
30 04 * * * $HOME/cron/refresh_FRPT84_cp.sh >>$HOME/cron/refresh_FRPT84.log
2>&1
This script starts fine. The job simply cd's to a directory and then runs
another shell script as such:
cd /opt/oracle/admin/frpt84/refresh
./refresh_FIN84_db_expimp_cp.sh FRPT84
However, a ps shows what appear to be duplicates (I've sorted the output for
readability):
oracle[SRPT80]@trillian=> ps -ef|grep refre
UID PID PPID C STIME TTY TIME CMD
oracle 15690 309 0 04:30:00 ? 0:00 sh -c
$HOME/cron/refresh_FRPT84_cp.sh >>$HOME/cron/refresh_FRPT84.log 2>&1
oracle 15693 15690 0 04:30:00 ? 0:00 sh -c
$HOME/cron/refresh_FRPT84_cp.sh >>$HOME/cron/refresh_FRPT84.log 2>&1
oracle 15701 15693 0 04:30:00 ? 0:00 /bin/ksh
./refresh_FIN84_db_expimp_cp.sh FRPT84
oracle 15864 15701 0 04:30:52 ? 0:00 /bin/ksh
./refresh_FIN84_db_expimp_cp.sh FRPT84
cron is PID 309:
UID PID PPID C STIME TTY TIME CMD
root 309 1 0 Oct 27 ? 0:04 /usr/sbin/cron
For the calling script (the one that gets launched from cron) there's an
occurrence with a PPID of 309 (cron) and a second occurrence with the first
occurrence as a PPID.
e.g.
PID 15690 has a PPID of 309, PID 15693 has a PPID of 15690.
For the called script:
The PID 15701 has a PPID of 15693 (the originating or calling script) and
then PID 15864 has a PPID of 15701 (the other occurrence of the same job).
Anybody have any idea what's happening? the log for cron show only one
occurrence getting started.
Thanks!
Andy
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:28 EDT