Re: Is who -b command available? Need to know when computer was started.
- Date: Tue, 16 Oct 2018 18:03:27 +0200
- From: john doe <johndoe65534@xxxxxxxx>
- Subject: Re: Is who -b command available? Need to know when computer was started.
On 10/16/2018 5:36 PM, Peder Sverdrup via cygwin wrote:
> I am making a script and need to know when the computer was last booted.
> This can be done with
> who -b command. I have installed the minimum cygwin and this command is not
> Which package do I need to install in order to have this command available
> (or any other command
> that can tell when the computer was last booted).
If you have 'SystemInfo' you could try:
$ cmd.exe /C "SystemInfo /FO list" | grep 'System Boot Time'
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple