Created
August 22, 2014 22:08
-
-
Save hliang/4665a72d7755926dd7a2 to your computer and use it in GitHub Desktop.
Submit a new job after old job is done
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
# start a new job once after an old job finish | |
while qstat -j 112233 > /dev/null; do echo -n "Previous job is still running... "; date; sleep 600; done; echo "Previous job completed. Now starting new job."; qsub newjob.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment