Skip to content

Instantly share code, notes, and snippets.

@jlongman
Created May 25, 2015 14:30
Show Gist options
  • Save jlongman/35ed82ecbc3878dde145 to your computer and use it in GitHub Desktop.
Save jlongman/35ed82ecbc3878dde145 to your computer and use it in GitHub Desktop.
ping test a host
function pssh() {
host=$1
shift
ping -o $host && growl "$host connected" && ssh $host $@
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment