get the process id of a bash script

Matt Domsch Matt_Domsch at dell.com
Fri May 16 13:46:13 UTC 2008


On Fri, May 16, 2008 at 03:33:53PM +0200, Guillaume wrote:
> hi,
> i woul like to know the command displaying the actual PID of a bash script.
> I try to use $! but it return me the wrong pid (in fact the past
> process i ran before).

$$

-- 
Matt Domsch
Linux Technology Strategist, Dell Office of the CTO
linux.dell.com & www.dell.com/linux




More information about the fedora-list mailing list