The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-25-2007
new2ss new2ss is offline
Registered User
 

Join Date: Jan 2006
Posts: 125
determine pid from ps -ef | grep something

Hi all,

i have a script called a.sh and within a.sh it calls b.sh.

when i do a ps -ef | grep a.sh, i get two sets of number

user_test 4225 3250 0 10:31 pts/1 00:00:00 a.sh

when i do a ps -ef | grep b.sh, i get two sets of number

user_test 4269 4225 22 10:31 pts/1 00:00:45 b.sh

why are there there two sets of numbers? which is the pid of a.sh and b.sh respectively?
Reply With Quote
Forum Sponsor