From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96825 invoked by alias); 16 Oct 2018 17:34:42 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 96799 invoked by uid 89); 16 Oct 2018 17:34:42 -0000 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 Received: from emp-exed202.leidos.com (HELO EMP-EXED202.leidos.com) (149.8.144.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 16 Oct 2018 17:34:40 +0000 Received: from EMP-EXMR203.corp.leidos.com (10.176.184.55) by EMP-EXED202.leidos.com (149.8.144.44) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 16 Oct 2018 12:34:38 -0500 Received: from EMP-EXMR204.corp.leidos.com ([fe80::bd63:71ca:560d:abbc]) by EMP-EXMR203.corp.leidos.com ([fe80::cc4c:f749:2a2e:35f0%23]) with mapi id 14.03.0361.001; Tue, 16 Oct 2018 12:34:37 -0500 From: "Wells, Roger K." To: "cygwin@cygwin.com" Subject: Re: EXTERNAL: Re: Is who -b command available? Need to know when computer was started. Date: Tue, 16 Oct 2018 17:34:00 -0000 Message-ID: <99897D710406F142A5DE486B0F3B7BC10158CBFCA0@EMP-EXMR204.corp.leidos.com> References: <014001d46565$feedda10$fcc98e30$@yahoo.com> <20181016165745.GA1226@phoenix> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Return-Path: ROGER.K.WELLS@leidos.com X-IsSubscribed: yes X-SW-Source: 2018-10/txt/msg00139.txt.bz2 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 availab= le >> (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 > > --=20 Roger Wells, P.E. leidos 221 Third St Newport, RI 02840 401-847-4210 (voice) 401-849-1585 (fax) roger.k.wells@leidos.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