diff options
| author | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-07 12:05:15 +0100 | 
|---|---|---|
| committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-07 12:05:15 +0100 | 
| commit | 334e4ab181ac6be7a464ce0b48836a5d390e40fe (patch) | |
| tree | 141cfc8e442444186adcfd2a6cf1767addd73e8f /etc | |
| parent | 3b2155bcb52db95c3c00fac1674119445a1a1d94 (diff) | |
check_ssh: Descriptive commnt
Diffstat (limited to 'etc')
| -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 26ee9fa..7cd9f25 100644 --- a/etc/functions/check_ssh +++ b/etc/functions/check_ssh @@ -1,4 +1,5 @@  ## vim:ft=zsh +## check_ssh - returns true if a machine is reachable and allowing logins on ssh  if [[ $(ssh $1 'echo foo' 2> /dev/null < /dev/null ) == foo ]] {  	return 0  } else {  | 
