delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/02/13:20:53

X-Spam-Check-By: sourceware.org
Message-ID: <44A80062.2090804@cygwin.com>
Date: Sun, 02 Jul 2006 13:20:34 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060112 Fedora/1.5-1.fc4.remi Thunderbird/1.5 Mnenhy/0.7.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Execute command at shutdown
References: <e88ni0$hsu$1 AT sea DOT gmane DOT org>
In-Reply-To: <e88ni0$hsu$1@sea.gmane.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Maurício wrote:
>   Hi,
> 
>   Is it possible, using some cygwin functionality, to tell Windows to 
> execute a command at shutdown? For instance, I would like to have:
> 
> ipconfig.exe /release
> 
> executed everytime I shutdown Windows, since I need that to avoid 
> problems with my cable provider when using dual-boot. How can I do that?


As an alternative to Igor's suggestions, if you're willing interject a
different shutdown scheme into your process, you can always create an
alias or a script that does the above and then calls Cygwin's 'shutdown'
in the flavor of your choice to do what you're looking for.  'shutdown'
is available in it's own Cygwin package.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

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