Created
May 25, 2015 14:30
-
-
Save jlongman/35ed82ecbc3878dde145 to your computer and use it in GitHub Desktop.
ping test a host
This file contains hidden or 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
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