Created
November 5, 2014 10:13
-
-
Save gismo141/2afad39b6af6f88c5246 to your computer and use it in GitHub Desktop.
Wait for something to finish, then start something else right after it.
This file contains 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
pid=$(ps -opid= -C your_script_name) | |
while [ -d /proc/$pid ] ; do | |
sleep 1 | |
done && ./your_other_script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment