PC Review


Reply
Thread Tools Rate Thread

Behavior of "shutdown -f -s" vs. "shutdown -s"?

 
 
Bert Hyman
Guest
Posts: n/a
 
      2nd Dec 2009
XP Pro SP3

The description of the "-f" option is

"Forces running applications to close without warning"

Does this mean that all running apps immediately have the rug pulled out
from under them, without first receiving the windows message to do a
graceful exit?

I have my backup utility set to issue a "shutdown -s" command when it's
done every evening, but occasionally come in to see the machine still
running with a dialog displayed saying that some app or another could
not be terminated.

I'd really like the machine to shut down, but I'd also like any running
apps or services to get a chance to clean up after themselves.

--
Bert Hyman St. Paul, MN (E-Mail Removed)
 
Reply With Quote
 
 
 
 
Pegasus [MVP]
Guest
Posts: n/a
 
      2nd Dec 2009
*** See below.

"Bert Hyman" <(E-Mail Removed)> wrote in message
news:Xns9CD55DD52ACD3VeebleFetzer@207.46.248.16...
> XP Pro SP3
>
> The description of the "-f" option is
>
> "Forces running applications to close without warning"
>
> Does this mean that all running apps immediately have the rug pulled out
> from under them, without first receiving the windows message to do a
> graceful exit?

*** Yes - you could easily test this by observing what happens
*** when you issue the command while you have unsaved data
*** in an MS Word document.

> I have my backup utility set to issue a "shutdown -s" command when it's
> done every evening, but occasionally come in to see the machine still
> running with a dialog displayed saying that some app or another could
> not be terminated.
>
> I'd really like the machine to shut down, but I'd also like any running
> apps or services to get a chance to clean up after themselves.

*** It's not the cleaning up that's the problem but the expected human
*** interaction. When you issue an unattended shutdown command, who
*** will click the "yes/no" button in a dialog box with a prompt such as
*** "Do you want to save the changes to this document?"
> --
> Bert Hyman St. Paul, MN (E-Mail Removed)



 
Reply With Quote
 
Bert Hyman
Guest
Posts: n/a
 
      2nd Dec 2009
In news:#(E-Mail Removed) "Pegasus [MVP]"
<(E-Mail Removed)> wrote:

> *** See below.
>
> "Bert Hyman" <(E-Mail Removed)> wrote in message
> news:Xns9CD55DD52ACD3VeebleFetzer@207.46.248.16...
>
>>
>> I'd really like the machine to shut down, but I'd also like any
>> running apps or services to get a chance to clean up after
>> themselves.

> *** It's not the cleaning up that's the problem but the expected human
> *** interaction. When you issue an unattended shutdown command, who
> *** will click the "yes/no" button in a dialog box with a prompt such
> as *** "Do you want to save the changes to this document?"


Well, there shouldn't be any interactive applications running at
backup/shutdown time, just services and the like.

In retrospect, the few times I've encountered programs that wouldn't or
couldn't exit cleanly during the normal "shutdown -s" process, I
wouldn't have cared if they'd been terminated violently :-)

On the other hand, I can't say the same about all the other processes
that nicely shut themselves down when asked.

It's too bad that the "-f" option doesn't try a clean shutdown first and
only kill the processes as a last resort.

Oh well... can't have everything.

--
Bert Hyman St. Paul, MN (E-Mail Removed)
 
Reply With Quote
 
Bob I
Guest
Posts: n/a
 
      2nd Dec 2009

Two lines, one with -s the second with -f

Bert Hyman wrote:
> In news:#(E-Mail Removed) "Pegasus [MVP]"
> <(E-Mail Removed)> wrote:
>
>
>>*** See below.
>>
>>"Bert Hyman" <(E-Mail Removed)> wrote in message
>>news:Xns9CD55DD52ACD3VeebleFetzer@207.46.248.16...
>>
>>
>>>I'd really like the machine to shut down, but I'd also like any
>>>running apps or services to get a chance to clean up after
>>>themselves.

>>
>>*** It's not the cleaning up that's the problem but the expected human
>>*** interaction. When you issue an unattended shutdown command, who
>>*** will click the "yes/no" button in a dialog box with a prompt such
>>as *** "Do you want to save the changes to this document?"

>
>
> Well, there shouldn't be any interactive applications running at
> backup/shutdown time, just services and the like.
>
> In retrospect, the few times I've encountered programs that wouldn't or
> couldn't exit cleanly during the normal "shutdown -s" process, I
> wouldn't have cared if they'd been terminated violently :-)
>
> On the other hand, I can't say the same about all the other processes
> that nicely shut themselves down when asked.
>
> It's too bad that the "-f" option doesn't try a clean shutdown first and
> only kill the processes as a last resort.
>
> Oh well... can't have everything.
>


 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      2nd Dec 2009

"Bert Hyman" <(E-Mail Removed)> wrote in message
news:Xns9CD5717F8DBB1VeebleFetzer@216.250.188.141...
> In news:#(E-Mail Removed) "Pegasus [MVP]"
> <(E-Mail Removed)> wrote:
>
>> *** See below.
>>
>> "Bert Hyman" <(E-Mail Removed)> wrote in message
>> news:Xns9CD55DD52ACD3VeebleFetzer@207.46.248.16...
>>
>>>
>>> I'd really like the machine to shut down, but I'd also like any
>>> running apps or services to get a chance to clean up after
>>> themselves.

>> *** It's not the cleaning up that's the problem but the expected human
>> *** interaction. When you issue an unattended shutdown command, who
>> *** will click the "yes/no" button in a dialog box with a prompt such
>> as *** "Do you want to save the changes to this document?"

>
> Well, there shouldn't be any interactive applications running at
> backup/shutdown time, just services and the like.


If this is so then a forced shutdown (-f) is the appropriate method. It will
not do any damage.


 
Reply With Quote
 
Shenan Stanley
Guest
Posts: n/a
 
      2nd Dec 2009
Bert Hyman wrote:
> XP Pro SP3
>
> The description of the "-f" option is
>
> "Forces running applications to close without warning"
>
> Does this mean that all running apps immediately have the rug
> pulled out from under them, without first receiving the windows
> message to do a graceful exit?
>
> I have my backup utility set to issue a "shutdown -s" command when
> it's done every evening, but occasionally come in to see the
> machine still running with a dialog displayed saying that some app
> or another could not be terminated.
>
> I'd really like the machine to shut down, but I'd also like any
> running apps or services to get a chance to clean up after
> themselves.


-f - "Poof*, gone.

Just the way it works. If you want the most graceful shutdown possible -
you shutdown your applications manually, you then choose shutdown and answer
any queries you get.

If you have your backup utility set to do this when it is done - shouldn't
there be nothing open when you leave the computer of consequence anyway?

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"remote procedure call" "slow shutdown" xp home ColinK Windows XP General 0 12th Nov 2007 12:47 AM
Is there a execution folder for "shutdown" similar to "startup" during boot process? Claudia Miller Windows XP Help 3 3rd May 2006 04:48 AM
Is there a execution folder for "shutdown" similar to "startup" during boot process? Claudia Miller Windows XP General 0 2nd May 2006 09:09 PM
Click on "Restart" or "Logoff" shutdowns the computer -> Always shutdown Sven T.Eriksson Microsoft Windows 2000 0 13th Oct 2005 11:02 AM
Applications Shutdown with "c0000006 (in page io error)" or "c0000005 (access v" Mike Wolfe Microsoft Windows 2000 Terminal Server Applications 1 16th Dec 2003 09:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:40 AM.