Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ffes committed Dec 1, 2023
1 parent 0c38722 commit 7e92f7d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ One of the Cygwin tools I used often on our servers at the office was the `shutd
Yes, Windows has a pretty decent `shutdown.exe` but the major advantage of the Cygwin `shutdown` is that it mimics the Linux `shutdown` command, especially the possibility to add a timestamp at the end.
And another minor disadvantage of `shutdown.exe` is that when you use the wrong command line options you could shutdown the machine instead of rebooting it.

```
```sh
shutdown -fri 23:30
```

Expand All @@ -19,13 +19,15 @@ The program will calculate the number of seconds between the moment of invocatio
Every month I miss this functionality.
When you need to install the regular Windows updates on a number of servers, you want to reboot them at a moment it has the least impact for the users.
And you don't want to calculate that number of seconds.
And I don't want to have to go through the hassle of setting up a one-time Scheduled Task.
A command line tool is much easier.

I have maintained the [sources of Cygwin shutdown](https://github.com/cygwin/shutdown) for some time, so I took that as an inspiration for this tool.
And since some of the code has been reused, I will obviously release this with the GPL2 license as well.

## Usage

This command line tool reboot you machine at a given time.
This command line tool reboots you machine at a given time.

The tool takes just one argument, a timestamp when the computer needs to reboot.

Expand All @@ -39,7 +41,7 @@ RebootAt now
A timestamp means to reboot at the first time this time will occur.
The timestamp has to be in 24-hours notation.

```
```sh
# Reboot today at 23:30
RebootAt 23:30

Expand Down

0 comments on commit 7e92f7d

Please sign in to comment.