peter-f
12/30/2016 - 5:22 PM

Wait for a process to exit to run a command

Wait for a process to exit to run a command

# Wait for firefox to be closed
while [ `pidof firefox` ]
do
wait `pidof firefox`
done

# do something after ff exited