diff options
Diffstat (limited to 'etc/functions/check_ssh')
-rw-r--r-- | etc/functions/check_ssh | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/etc/functions/check_ssh b/etc/functions/check_ssh deleted file mode 100644 index 2c7cca7..0000000 --- a/etc/functions/check_ssh +++ /dev/null @@ -1,8 +0,0 @@ -## vim:ft=zsh -## check_ssh - returns true if a machine is reachable and allowing logins on ssh -## Usage: check_ssh <host> -if [[ $(ssh $1 'echo foo' 2> /dev/null < /dev/null ) == foo ]] { - return 0 -} else { - return 1 -} |