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:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; q=dns; s=default; b=SMC6 a3no1ATAQLTN5lEg21D20/zmeemrd8RAw245L9TmlhL8lj+4TlbRaqPZsjVfPYpD LnunFGkRT2dhdTrhs04iV7Cv6MIDPCErND486Es0rqLIhQAlnp2XOmp3SUxsLYD7 5WTB34QSyf1PgaLKt1R/mWfQs5Co5EhyOdKSUbM= 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:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; s=default; bh=LXWMmEQGTy Zk6FBGpzhiSToLVwA=; b=AgRFWMS1I/pXBY1iYNJN2R1quNMGXQfOkI88bIoyUW l4XRLSDf3Jvts3nVM4h04TNiQs9IUn2vz48VZ31RXAi41v/U+f0clftrITJMEPbB wmLdL1/DILiX+wsQZ5LzDlf4kISV0VGxMJ82A1KpWGWC2ReNrcvsH4eLfxTYRhCo U= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail.spocom.com 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== Date: Tue, 16 Oct 2018 09:57:45 -0700 From: Gary Johnson To: cygwin AT cygwin DOT com Subject: Re: Is who -b command available? Need to know when computer was started. Message-ID: <20181016165745.GA1226@phoenix> Mail-Followup-To: cygwin AT cygwin DOT 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 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