Wednesday, August 18, 2010

Get the pid of my_process

pidof my_process

ps uxw | grep my_process | grep -v grep | awk '{print $2}

No comments:

Post a Comment