Re: Set PID as variable in Script
From: Dan Leeder (flight327_at_excite.com)
Date: 6 Jan 2004 07:54:21 -0800
Steve in Phx <email@example.com> wrote in message news:<rnpKb.46228$gN.12305@fed1read05>...
> Try this:
> PID=`echo $$`
> echo $PID
> Note the tick marks used.
> -Steve in Phx.
> Dan Leeder wrote:
> > I need to get the PID 28414 in a variable for a script. Is there
> > something similar to the whoami command to return just the process id
> > of the currently logged on user?
> > leedan pts/15 Jan 05 15:55 28414 (192.168.64.121)
> > Thanks
Thanks Steve.. That did the trick