This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Is who -b command available? Need to know when computer was started.
- From: Gary Johnson <garyjohn at spocom dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 16 Oct 2018 09:57:45 -0700
- Subject: Re: Is who -b command available? Need to know when computer was started.
- Domainkey-signature: a=rsa-sha1; c=nofws; q=dns; d=spocom.com; s=mail; h=received:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:x-operating-system:user-agent; b=XBMTzcKhAvlJal6LzFW/pFnKVCeF1hHXCuB8ZJWZM6D18L/DUXzbSnDBUO5Zs75zK ogbZa9XmyBdqnh/AVTZig==
- References: <014001d46565$feedda10$fcc98e30$@yahoo.com>
On 2018-10-16, Peder Sverdrup via cygwin wrote:
> Hi,
>
> 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
> available.
>
> 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).
The procps-ng package provides the uptime command which will tell
you how long it has been since the computer was last booted.
Regards,
Gary
--
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