My Tech Notes
Get the pid of a command running background
sleep 100 & echo $!
Note: $! holds the pid of the command.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment