BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

setting timeout value

Frequent Advisor

setting timeout value



   for HOST in $(< /tmp/hostdetails.txt); do
   echo $HOST
   ssh  $HOST uptime | awk -F, '{sub(".*up", "", $1);print $1,$2}'
   done >> uptime.log


suppose if a host is unavailable  during uptime check,it should skip that particular host and check for the other server.


How can i make those time setting value ?



Acclaimed Contributor

Re: setting timeout value

>How can I make those time setting value?


Try -o ConnectTimeout=##

-o option
Can be used to give options in the format used in the configuration file.  This is useful for specifying options for  which there is no separate command-line flag.  For full details of the options listed below, and their possible values, see  ssh_config(5).