Jun 27, 2008 #1 kozlow MIS Mar 3, 2003 326 US Display Script PID from script... Can not remember how I did it... Getting old....
Jun 27, 2008 #2 normntwrk MIS Aug 12, 2002 336 US Might be better ways to do it but this works for me In this case I'm looking for the PID of rssqserv and NOT a PID owned by root `ps -eaf | grep rssqserv | egrep -v grep | egrep -v root|awk '{print$2}'` Norm Upvote 0 Downvote
Might be better ways to do it but this works for me In this case I'm looking for the PID of rssqserv and NOT a PID owned by root `ps -eaf | grep rssqserv | egrep -v grep | egrep -v root|awk '{print$2}'` Norm
Jun 27, 2008 #3 SamBones Programmer Aug 8, 2002 3,186 US If you want the PID of the script that's running, it's just... Code: echo $$ Upvote 0 Downvote