SyntaxFix
Write A Post
Hire A Developer
Questions
There's a special variable for this in bash:
kill $!
$! expands to the PID of the last process executed in the background.