[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aix-l
Subject:    Re: PID
From:       "Brown, Tony" <tbrown () FHEG ! FOLLETT ! COM>
Date:       2000-03-30 14:21:02
[Download RAW message or body]


The variable $$ is the process number of the current shell.  For scripts,
this is the process ID under which the script is executing.



-----Original Message-----
From: Gray, Steve [mailto:SGray@WAKEFIELD.GOV.UK]
Sent: Thursday, March 30, 2000 4:19 AM
To: AIX-L@pucc.Princeton.EDU
Subject: PID


Here is what should be a simple one.
How do you get your own PID from within a shell script without having to
capture details from ps -ef or similar? Is there a straightforward command
to do it?

Steve Gray
Information Services
01924 305444
sgray@wakefield.gov.uk

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic