Skip to content

Instantly share code, notes, and snippets.

@lyndell
Last active February 12, 2018 02:15
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 lyndell/73b0946f4c1235c7ad78e565f0fa9c1c to your computer and use it in GitHub Desktop.
Save lyndell/73b0946f4c1235c7ad78e565f0fa9c1c to your computer and use it in GitHub Desktop.
check_up-time.sh
#/bin/bash +x
#
# High dependent on my ssh.config file.
#
LIST="z0h p0h pz0h apih"
LIST="z0 p0 pz0 api"
for I in $LIST
do
#
# Couldn't use my BASH alias "s".
#
ssh $I uptime
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment