Skip to content

Instantly share code, notes, and snippets.

@hliang
Created August 22, 2014 22:08
Show Gist options
  • Save hliang/4665a72d7755926dd7a2 to your computer and use it in GitHub Desktop.
Save hliang/4665a72d7755926dd7a2 to your computer and use it in GitHub Desktop.
Submit a new job after old job is done
# 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