From owner-freebsd-current@FreeBSD.ORG Wed May 29 20:18:00 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BF8C140D for ; Wed, 29 May 2013 20:18:00 +0000 (UTC) (envelope-from stuartb@4gh.net) Received: from smtp.rcn.com (smtp.rcn.com [69.168.97.78]) by mx1.freebsd.org (Postfix) with ESMTP id 8A3906BF for ; Wed, 29 May 2013 20:18:00 +0000 (UTC) X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=2.1 cv=Krx0hwmN c=1 sm=0 tr=0 a=AYs0lCZhWNYcdqRGU1uqFQ==:117 a=xWl05iZal9sA:10 a=wPDyFdB5xvgA:10 a=kj9zAlcOel0A:10 a=J-SXeeTLAAAA:8 a=2XxJDLx0xmcA:10 a=4svSRLp8KaIAQZoLMZwA:9 a=CjuIK1q_8ugA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp01.rcn.cmh.synacor.com header.from=stuartb@4gh.net; sender-id=neutral Authentication-Results: smtp01.rcn.cmh.synacor.com smtp.mail=stuartb@4gh.net; spf=neutral; sender-id=neutral Authentication-Results: smtp01.rcn.cmh.synacor.com smtp.user=stuartb.4gh@starpower.net; auth=pass (LOGIN) Received-SPF: neutral (smtp01.rcn.cmh.synacor.com: 208.58.6.235 is neither permitted nor denied by domain of 4gh.net) Received: from [208.58.6.235] ([208.58.6.235:45035] helo=freeman.4gh.net) by smtp.rcn.com (envelope-from ) (ecelerity 2.2.3.49 r(42060/42061)) with ESMTPA id 1E/1C-06490-77266A15; Wed, 29 May 2013 16:17:59 -0400 Received: by freeman.4gh.net (Postfix, from userid 1001) id 8E4C7130E03; Wed, 29 May 2013 16:17:58 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by freeman.4gh.net (Postfix) with ESMTP id 864F8130DA7; Wed, 29 May 2013 16:17:58 -0400 (EDT) Date: Wed, 29 May 2013 16:17:58 -0400 (EDT) From: Stuart Barkley To: freebsd-questions@freebsd.org Subject: Re: BSD sleep In-Reply-To: <20130528230140.A5B396F448@smtp.hushmail.com> Message-ID: References: <20130528230140.A5B396F448@smtp.hushmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Mailman-Approved-At: Wed, 29 May 2013 20:29:01 +0000 Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2013 20:18:00 -0000 On Tue, 28 May 2013 at 19:01 -0000, Kenta Suzumoto wrote: > Hi. Is there no built-in way of making "sleep" sleep in increments > of minutes, hours, etc? The GNU "sleep" can be invoked like "sleep > 1h" for an hour. The FreeBSD one's manpage leads me to believe we > can only use seconds, which is kind of annoying. Is there an > undocmented or missing feature here? Seems really trivial to > implement. > > ~ $ sleep 1h > usage: sleep seconds See also /usr/ports/misc/delay. Stuart