Quote:
|
Originally Posted by lorcan
This is to find the pid for the single process
Code:
ps -ef | grep 'your procees' | grep -v grep | awk '{print $2}' | read pid
|
You can do yhe work without using the
grep command :
Code:
pid=`ps -ef | awk '/your process/{ print $2 }'`
Jean-Pierre.