Hi All,
We are using db2 udb ver 7.x on AIX env. We are having a script to collect the snapshots and scheduled throguh crontab with 5 mins interval. We had taken care of number of script instance running (due to aviod some conf. in future). If it is more than one instance of the script is running, we'll throw an error msg on the log and stop the execution. I'm pasting the output of ps -ef command here.
************************************************** *******
/home/kollers $ ps -ef | grep snap
db2d003 68160 20494 0 13:45:00 - 0:00 sh -c /dcss/dsm/scripts/get_snapshot.ksh -p 3 > /dcss/logs/db2d003/get_snapshot.log 2>&1
db2d003 74912 20494 0 13:35:00 - 0:00 ksh /dcss/dsm/scripts/get_snapshot.ksh -p 3
db2d003 118336 20494 0 13:55:00 - 0:00 sh -c /dcss/dsm/scripts/get_snapshot.ksh -p 3 > /dcss/logs/db2d003/get_snapshot.log 2>&1
db2d003 121822 20494 0 14:00:00 - 0:00 sh -c /dcss/dsm/scripts/get_snapshot.ksh -p 3 > /dcss/logs/db2d003/get_snapshot.log 2>&1
db2d003 124840 20494 0 13:40:00 - 0:00 sh -c /dcss/dsm/scripts/get_snapshot.ksh -p 3 > /dcss/logs/db2d003/get_snapshot.log 2>&1
db2d003 127066 20494 0 13:50:00 - 0:00 sh -c /dcss/dsm/scripts/get_snapshot.ksh -p 3 > /dcss/logs/db2d003/get_snapshot.log 2>&1
************************************************** *******
If we look at the ps -ef output I'm not able to understand what is sh -c.
From the above output you see, my script executing only once ie, started @13:35. what about other entries with sh -c?
Can any one pls tell me....
With advance thanks,
Bala