Home arrow Journal arrow Get PID of a program using echo $!
Get PID of a program using echo $! PDF
Friday, 02 March 2012
If you want to get PID of a program you run from command line you can use echo $!:

Example:

  ls & echo $!

Last Updated ( Friday, 02 March 2012 )
 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?