www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <474FF360.8050900@unsane.co.uk> |
Date: | Fri, 30 Nov 2007 11:26:24 +0000 |
From: | Vince <jhary AT unsane DOT co DOT uk> |
User-Agent: | Thunderbird 2.0.0.9 (X11/20071116) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: big enormous shell script - to remotely execute .exes on machines |
References: | <14042448 DOT post AT talk DOT nabble DOT com> |
In-Reply-To: | <14042448.post@talk.nabble.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
airzonk wrote: > Hi all: > > I need to write a shell script that does the following: > > * Takes a list of machines by IP address and mounts the C$ share > * For each of these machines, executes an .exe on the *remote* host, not the > machine I am running the script from. I am not sure if this is even > possible; these machines do not have the cygwin dll or environment on them. > > * This executable causes the remote thin clients to reboot into write filter > enable mode - which allows changes to be made. It needs to sleep for about > 5 minutes after the last machine has the remote .exe executed. > > * After the sleep, it needs to (re) mount each machine's C$ share and copy > an identical set of files over to each directory. > > I think the kicker here is having the .exe run on the *remote* machine, not > the local one. Anyone know if this is possible ? > Easiest way I can think of would be to use psexec http://www.microsoft.com/technet/sysinternals/Utilities/PsTools.mspx Vince > Thanks - > Gabe -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |