delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/09/04:39:49

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <487478BE.E01AF991@dessent.net>
Date: Wed, 09 Jul 2008 01:37:18 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Updating cygwin from a remote shell?
References: <1215563345 DOT 10132 DOT ezmlm AT cygwin DOT com> <Pine DOT LNX DOT 4 DOT 58 DOT 0807090835060 DOT 32028 AT mail3 DOT jubileegroup DOT co DOT uk>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT 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

"G.W. Haywood" wrote:

> If there are any tips for a safer way of connecting to a Windows 2000
> server to do routine upgrades of Cygwin and other remote admin that I
> can't do using ssh, I'd be very happy to hear them.

If a reboot is allowable then you can use a tool like inuse.exe from the
MS Resource Kit to schedule the files for replacement on the next boot. 
You could do a poor man's version of this that doesn't require a reboot
by writing a batch file to move/copy the inuse files and running it via
the built-in at.exe scheduler for 5 minutes in the future or whatever. 
The batch file would have to take care to stop all cygwin services, do
the file operations, and then restart them.  This of course would be
rather brittle as missing some part of the upgrade would mean the
services might not start again so you'd need a safety net like a vnc
daemon running.

Brian

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019