Re: Set PID as variable in Script
From: Dan Leeder (flight327_at_excite.com)
Date: 01/06/04
- Next message: Frédéric Normand: "What is the best way to scratch a disk for tests"
- Previous message: Gary R. Hook: "Re: where can I get Java14.sdk.1.4.0.0 ?"
- In reply to: Steve in Phx: "Re: Set PID as variable in Script"
- Next in thread: Nicholas Dronen: "Re: Set PID as variable in Script"
- Reply: Nicholas Dronen: "Re: Set PID as variable in Script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 6 Jan 2004 07:54:21 -0800
Steve in Phx <two_wheeled@hotmail.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
- Next message: Frédéric Normand: "What is the best way to scratch a disk for tests"
- Previous message: Gary R. Hook: "Re: where can I get Java14.sdk.1.4.0.0 ?"
- In reply to: Steve in Phx: "Re: Set PID as variable in Script"
- Next in thread: Nicholas Dronen: "Re: Set PID as variable in Script"
- Reply: Nicholas Dronen: "Re: Set PID as variable in Script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]