Created
December 30, 2016 17:22
-
-
Save peterforgacs/3ed68543ee12860d95a4a1aaa326d8fd to your computer and use it in GitHub Desktop.
Wait for a process to exit to run a command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Wait for firefox to be closed | |
while [ `pidof firefox` ] | |
do | |
wait `pidof firefox` | |
done | |
# do something after ff exited |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment