delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/10/16/13:34:53

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:content-type:content-transfer-encoding:mime-version; q=dns; s=
default; b=PNRx9pvQcIsEpK+7cjk3UUKeKQ0+4M00thVlm6iViS8q9bD3Mommv
mynQ76o0TW0T/1rnxWqRTX7nj0ww8798rPwV8uis1RLS/OCUKHpp6qgcpD8vTJYG
u76cOt9yWkwO9hwwQ2q4M2sCSlOawGU7bF1t+VfQpFZ1STmN5FqxoE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:content-type:content-transfer-encoding:mime-version; s=default;
bh=+notPtJLF9fYpizymg8BbGWiwyM=; b=fM8m8OI6KNXtWUwepL1frzTsstb3
2Iy5bJRMVEK3Md0oErwok55/XP7hk+3RkeJUKgUqRtYc76w0pyRCFRFFTXWm7KyU
IAfKtTGnu8GF+sNIFov5BqOHnUkA+ATzzSm07znl2ntL7DbtzNMXeKP419Wf3Hx4
y7e3rRJllMGKUgU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=docshtml, UD:docs.html, docs.html, Roger
X-HELO: EMP-EXED202.leidos.com
From: "Wells, Roger K." <ROGER DOT K DOT WELLS AT leidos DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: EXTERNAL: Re: Is who -b command available? Need to know when computer was started.
Date: Tue, 16 Oct 2018 17:34:36 +0000
Message-ID: <99897D710406F142A5DE486B0F3B7BC10158CBFCA0@EMP-EXMR204.corp.leidos.com>
References: <014001d46565$feedda10$fcc98e30$@yahoo.com> <20181016165745 DOT GA1226 AT phoenix>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id w9GHYpnh005015

On 10/16/18 12:57 PM, Gary Johnson wrote:
> 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

FWIW
on my cygwin, 2.11.0(0.329/5/3), I have who (GNU coreutils) 8.26.
Of all the options -a/--all gives:
$ who --all
roger    - pty1         2018-10-16 13:05   .           276 (10.40.90.15)
-u, -H, -m, -s, -u gives the same (plus/minus a '-' or '.')
-q seems reasonable, at least similar to the same command on fedora
--version, --help give expected output.
The rest return nothing, including -b


>
> --
> 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
>
>

-- 
Roger Wells, P.E.
leidos
221 Third St
Newport, RI 02840
401-847-4210 (voice)
401-849-1585 (fax)
roger DOT k DOT wells AT leidos DOT com


--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019