diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-29 12:10:49 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-29 12:10:49 +0200 |
commit | d519281721c79a429700a8d3a1e8e51bc2782b42 (patch) | |
tree | 261a71497a80cf783744dc74d000a96ecbfa1edd /etc/functions/check_ssh | |
parent | 28f05852b2beb04c78f713caedac6063aaeb956c (diff) |
functions: Added/updated descriptions/comments
Diffstat (limited to 'etc/functions/check_ssh')
-rw-r--r-- | etc/functions/check_ssh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/functions/check_ssh b/etc/functions/check_ssh index 7cd9f25..2c7cca7 100644 --- a/etc/functions/check_ssh +++ b/etc/functions/check_ssh @@ -1,5 +1,6 @@ ## 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 { |