Created
July 1, 2015 00:05
-
-
Save baojie/05ca70fbaa05fed08f4f to your computer and use it in GitHub Desktop.
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
if | |
timeout 5s sleep 2; | |
then | |
echo 'OK'; | |
else | |
echo 'Not OK'; | |
fi | |
if | |
timeout 5s sleep 10; | |
then | |
echo 'OK'; | |
else | |
echo 'Not OK'; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment