Re: use openssh in script for timeout

From: all mail refused (elvis_at_notatla.org.uk)
Date: 03/13/04


Date: 13 Mar 2004 14:40:51 GMT

In article <k9p450l1sl433fn7bf5mumdgqnju7balst@4ax.com>, hmc wrote:

>I have a bash script that use openssh to go to a list of machines to
>run a program.
>I want the script to try the next host if the current host does not
>response in a certain period or prompt for password.
>Is there a option to do this?

Can be done with alarm() but I don't think bash has it. YA reason to use Perl.

There are also several existing scripts for this sort of thing - reaching
a set number of hosts concurrently, logging each output etc etc.

-- 
Elvis Notargiacomo  master AT barefaced DOT cheek


Relevant Pages

  • Re: internet proxy
    ... Is it possible to create separate shortcuts to IE - one with 'proxy server ... This script gets used when you enable the "Automatically ... connect to the host so no proxy would get used. ...
    (microsoft.public.windowsxp.general)
  • Re: How do I insert a cgi script into Publisher page?
    ... is not where I host my website. ... If your ISP supports cgi and has a form handling program then a form ... You must tell the server what e mail address you want the form results ... any where else you so desire or an auto redirect script with a delay. ...
    (microsoft.public.publisher.webdesign)
  • Re: SAFE MODE,fopen, and chmod
    ... The files going into the users/ folder are created by the "apache" user. ... I have a free php hosting account with an account name 'sample'. ... The host is "running in SAFE MODE", where, it seems that for fopen, mkdir and many other functions, a check is done for the UID of the script-running process to be the same as the UID of each resource concernedand only if the UIDs match, is the function allowed to work successfully. ... The same script has in the prior lines created the directory ...
    (comp.lang.php)
  • Re: Setting new date with offset in days
    ... run (or host) the script. ... WSH which can run both JScript and WScript. ... Isn't WScript the windows program ... It seems that JavaScript or JScript is best used in a web ...
    (comp.lang.javascript)
  • Re: Scripting hosts backwards on my system
    ... the //H switch sets the default host which will be used when a script is ... Copyright Microsoft Corporation 1996-2001. ... even though CScript was long ago ...
    (microsoft.public.scripting.vbscript)

Quantcast