Skip to content

Instantly share code, notes, and snippets.

@baojie
Created July 1, 2015 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baojie/05ca70fbaa05fed08f4f to your computer and use it in GitHub Desktop.
Save baojie/05ca70fbaa05fed08f4f to your computer and use it in GitHub Desktop.
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