Re: Can script/bat file skip client with no connectivity?
From: Jerold Schulman (Jerry_at_jsiinc.com)
Date: 02/25/05
- Next message: Jay: "Scripting and creating home directories"
- Previous message: Luis Gabriel Mieles: "close and restart few applications"
- In reply to: D.P. Roberts: "Can script/bat file skip client with no connectivity?"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Can script/bat file skip client with no connectivity?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 25 Feb 2005 14:52:23 -0500
On Fri, 25 Feb 2005 09:56:41 -0700, "D.P. Roberts" <dproberts@pbride.com> wrote:
>I often run bat files or scripts that process commands for multiple remote
>client machines. Sometimes however, a machine is down or has dropped its
>network connection for whatever reason. When this happens, the entire
>process 'hangs' on this machine for about 3 minutes before finally going on
>to the next machine. Is there a way to have the process skip the down
>machine so processing doesn't hang up like this? Or perhaps a way to reduce
>the default 3-minute wait period when a machine is down?
>
>Thanks for any help - this has been very frustrating!
>
Just before firing off the report process:
SET OK=N
for /f "Tokens=1" %a in ('@ping -n 1 ComputerName or IPAddress^|FIND "Reply"') do SET OK=Y
If "%OK%" EQU "Y" do the remote process
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
- Next message: Jay: "Scripting and creating home directories"
- Previous message: Luis Gabriel Mieles: "close and restart few applications"
- In reply to: D.P. Roberts: "Can script/bat file skip client with no connectivity?"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Can script/bat file skip client with no connectivity?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|