From owner-freebsd-current@FreeBSD.ORG Tue Feb 1 19:35:38 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 80C7416A4CE for ; Tue, 1 Feb 2005 19:35:38 +0000 (GMT) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 499F443D1F for ; Tue, 1 Feb 2005 19:35:38 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) j11JZa0e095485; Tue, 1 Feb 2005 11:35:37 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9p2/8.12.9/Submit) id j11JZaR6095484; Tue, 1 Feb 2005 11:35:36 -0800 (PST) (envelope-from dillon) Date: Tue, 1 Feb 2005 11:35:36 -0800 (PST) From: Matthew Dillon Message-Id: <200502011935.j11JZaR6095484@apollo.backplane.com> To: Julian Elischer References: <20050201101113.J572@localhost> cc: current@freebsd.org Subject: Re: cynchronised sleep capbilty.. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 01 Feb 2005 19:35:38 -0000 :I often find myself wanting to write shell scripts that do: : :... : :while: :do : report results : sleep -until_next 10 :done : : :I have inplemented something like this with a crude :shell function that sleeps up to 9 seconds to get to I think integrating such an option into /bin/sleep is an excellent idea. I have had need for such a feature myself on occassion. :thirdly: is it worth making sleep a shell builtin? :running sleep(1) every time is a lot of work for what :we need. : :julian I don't think this is necessary. -Matt