Skip to content

Instantly share code, notes, and snippets.

@theeye-io
Created October 10, 2017 01:55
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 theeye-io/053bd502550e0918f9cb17d9a818aaed to your computer and use it in GitHub Desktop.
Save theeye-io/053bd502550e0918f9cb17d9a818aaed to your computer and use it in GitHub Desktop.
This script verifies if a Linux host ran less than 1 minute.
read -d. uptime < /proc/uptime
if (( uptime > 1 ))
then
echo failure
else
echo normal
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment