From owner-freebsd-questions@freebsd.org Mon Nov 6 18:32:00 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C79D5E6496E for ; Mon, 6 Nov 2017 18:32:00 +0000 (UTC) (envelope-from erwan@rail.eu.org) Received: from voyageurs.rail.eu.org (voyageurs.rail.eu.org [IPv6:2001:bc8:30d3::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 951187E41D for ; Mon, 6 Nov 2017 18:32:00 +0000 (UTC) (envelope-from erwan@rail.eu.org) Received: from [IPv6:2001:bc8:30d3:3040:6267:20ff:fede:1808] (unknown [IPv6:2001:bc8:30d3:3040:6267:20ff:fede:1808]) by voyageurs.rail.eu.org (Postfix) with ESMTPSA id 103E02CC01DD for ; Mon, 6 Nov 2017 19:31:57 +0100 (CET) Subject: Re: how to code a timer loop in a sh script To: freebsd-questions@freebsd.org References: <5A00A826.2000501@gmail.com> From: Erwan David Message-ID: Date: Mon, 6 Nov 2017 19:31:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <5A00A826.2000501@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rail.eu.org; s=mail; t=1509993117; bh=jRDoRSzTTD63LCNrA2pGnFfUix5Tw8abNOlvNAEuBcs=; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=KT9ajm2s3JhQg4bPepQchHZrLCCHwcgf6bShyNznOXTb1RsdN32FSyGHe7WQISIZxS+Q4VBOD9dMDVhsiewwHtjaup+WmpLAZRiv+i3WDAGCviVqzBIgDXidweMdivVA8bskwjirxgTnRMM7fUTZoCmj9sh6sEcvhAblNWOxzEc= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Nov 2017 18:32:00 -0000 Le 11/06/17 à 19:21, Ernie Luzar a écrit : > Trying to write a sh script that will run continually and every 10 > minutes issue a group of commands. Been trying to use the wait command > and the while loop command to achieve the desired effect with no joy. > Would like an example of a wait loop code to see how its done. > > Thanks for any help. > _______________________________________________ You can achieve this with gnu-watch, to run your script every 10 minutes.