Top "System-shutdown" questions

Shutting down the current operating system.

How to detect Windows shutdown or logoff

I need to detect when Windows is shutdown (or restarted) or when the user is logging off. I need to …

c# .net windows winforms system-shutdown
How to fix "Google Chrome did not shutdown properly" in Windows 8.1

When shutting down Windows 8.1, Google Chrome produces the error message "Google Chrome did not shutdown properly". How can I get …

google-chrome windows-8.1 application-shutdown system-shutdown
shutting down computer (linux) using python

I am trying to write a script that will shut down the computer if a few requirements are filled with …

python linux python-2.7 system-shutdown
Detecting a scheduled shutdown

I have a cmd script that will execute a set of patches, and it's designed to abort if a reboot …

windows winapi system-shutdown
How to detect pending system shutdown on Linux?

I am working on an application where I need to detect a system shutdown. However, I have not found any …

c linux sigterm system-shutdown
How do I make a hibernation batch file?

I'm trying to make a batch file that executes a simple command: shutdown -h I've created a shutdown.bat file …

windows batch-file system-shutdown hibernation
C# - How to detect a Windows shutdown/logoff and cancel that action (after asking the user)

Some explanation: for a project I'm working on I have to write a program that is running in the background, …

c# .net windows system-shutdown
Run a script only at shutdown (not log off or restart) on Mac OS X

Is there any way to run a script only at shutdown? I mean, only when the computer is really shutting …

macos bash shell shutdown-hook system-shutdown
How to hibernate windows pc from cmd

How can I set my computer to hibernate after, say 18000 seconds? This doesn't work: shutdown -h -t 18000

windows cmd shutdown system-shutdown
Detect pending linux shutdown

Since I install pending updates for my Ubuntu server as soon as possible, I have to restart my linux server …

linux shutdown system-shutdown