Sample Header Ad - 728x90

Listen for exit of process given pid $pid

31 votes
5 answers
33064 views
Say I have a pid in hand, $pid. Is there some bash/system command I can use to listen for the exit of that process with the given pid? If no process with $pid exists, I guess the command should simply fail.
Asked by Alexander Mills (10734 rep)
Feb 28, 2018, 07:38 AM
Last activity: Apr 22, 2025, 04:33 PM