-
-
Save taoky/0f03ee9ff76ce75c0473aef4ae07862b to your computer and use it in GitHub Desktop.
run multi jobs and get whether any process failed
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
#!/bin/bash | |
rm -f /tmp/failure | |
~/executor/executor -shell 'sleep 3 && ping' > /tmp/log || touch /tmp/failure & | |
~/executor/executor ls > /tmp/log2 || touch /tmp/failure && | |
wait | |
test -f /tmp/failure && echo failed! && exit 1 | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment