delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/09/02/13:27:35

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: 6hp7xDCswBAZFPiwXTBlX1ARAAZrOcR.nQ--
Message-ID: <4E6111DF.10502@molconn.com>
Date: Fri, 02 Sep 2011 13:26:55 -0400
From: LMH <lmh_users-groups AT molconn DOT com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.1) Gecko/20110830 Firefox/6.0.1 SeaMonkey/2.3.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: shutdown doesn't do anything, winXP
References: <4E5FD423 DOT 4090506 AT molconn DOT com> <20110902092024 DOT GC22172 AT calimero DOT vinschen DOT de>
In-Reply-To: <20110902092024.GC22172@calimero.vinschen.de>
X-IsSubscribed: yes
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

Using the full path was successful.

As an aside, why does which shutdown return /usr/bin/shutdown when the 
shutdown app is located in /bin/shutdown? What value does the /usr part 
of the path have in this context?

I suppose I should use force, but I never have anything running when I 
run the backup script that this is part of.

LMH



Corinna Vinschen wrote:
> On Sep  1 14:51, LMH wrote:
>> I have a bash script that runs rsync and I have been trying to add a
>> command to shutdown the computer after the backup has finished
>> running.
>>
>> I have added,
>>
>> shutdown -s now
>>
>> and also tried,
>>
>> shutdown -s 5
>> shutdown -x now
>> shutdown -x 5
>>
>> but the computer doesn't shut down. Running which shutdown gives me,
>>
>> /usr/bin/shutdown
>>
>> so I know its there.
>>
>> Any suggestions?
>
> Try the -f/--force option.  Note that shutdown can succeed even if the
> machine won't actually shutdown.  See, for instance, the remarks section
> on http://msdn.microsoft.com/en-us/library/aa376874%28v=vs.85%29.aspx
>
>
> Corinna
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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