Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Process ids in shell scripts

Status
Not open for further replies.

fatgit

Programmer
Feb 12, 2001
2
0
0
DE
If I have shell script that fires off other process, how in the script can I find the process id of the started processes.

Thanks,
FG
 
OK,

$! gives the PID of the last background job. This should do the trick.

FG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top