This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: shutdown doesn't do anything, winXP
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 2 Sep 2011 11:20:24 +0200
- Subject: Re: shutdown doesn't do anything, winXP
- References: <4E5FD423.4090506@molconn.com>
- Reply-to: cygwin at cygwin dot com
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
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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