If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > ps -ef - doubt

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-14-05, 06:20
bala_e bala_e is offline
Registered User
 
Join Date: Jan 2004
Posts: 49
Cool ps -ef - doubt

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
Reply With Quote
  #2 (permalink)  
Old 11-14-05, 09:46
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
"sh -c" is the way crontab launches the process.

It looks like they're all still running... starting in 5 minute intervals.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On