From d519281721c79a429700a8d3a1e8e51bc2782b42 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 29 Mar 2009 12:10:49 +0200 Subject: functions: Added/updated descriptions/comments --- etc/functions/check_ssh | 1 + 1 file changed, 1 insertion(+) (limited to 'etc/functions/check_ssh') 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 if [[ $(ssh $1 'echo foo' 2> /dev/null < /dev/null ) == foo ]] { return 0 } else { -- cgit v1.2.3