From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14143 invoked by alias); 16 Oct 2018 16:57:33 -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 14129 invoked by uid 89); 16 Oct 2018 16:57:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail.spocom.com Received: from mail.spocom.com (HELO mail.spocom.com) (206.63.224.240) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 16 Oct 2018 16:57:31 +0000 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== Received: from localhost (174-31-61-2.spkn.qwest.net [174.31.61.2]) by mail.spocom.com with SMTP; Tue, 16 Oct 2018 09:57:10 -0700 Date: Tue, 16 Oct 2018 16:57:00 -0000 From: Gary Johnson To: cygwin@cygwin.com Subject: Re: Is who -b command available? Need to know when computer was started. Message-ID: <20181016165745.GA1226@phoenix> Mail-Followup-To: cygwin@cygwin.com References: <014001d46565$feedda10$fcc98e30$@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <014001d46565$feedda10$fcc98e30$@yahoo.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes X-SW-Source: 2018-10/txt/msg00138.txt.bz2 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