From owner-freebsd-questions@freebsd.org Mon Nov 6 18:44:47 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 C3376E64EA2 for ; Mon, 6 Nov 2017 18:44:47 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: from mail-io0-x22d.google.com (mail-io0-x22d.google.com [IPv6:2607:f8b0:4001:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 875897EB3B for ; Mon, 6 Nov 2017 18:44:47 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: by mail-io0-x22d.google.com with SMTP id m81so16679327ioi.13 for ; Mon, 06 Nov 2017 10:44:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-transfer-encoding; bh=P6YVZWBUFWlcamhIBe7Z7VEg+pW8Qz/lsfkXFEG9HZk=; b=PqudY1Ggmnv/QY0OpU7FUowNuY68l1YjfhopCmBChv/cdFkBiGY5MCkGqmfIEM1P6T dzahgbYdsFqkrrcR1unMY44Y36lJM5OYE/InzA4yBFRmiFR5O9lhEWN0zTCeM2bvFaXJ SM1z8kwYw3BXD9c4l5t3h1y7h9OTxAZHl9pFmbmn4B0VFZgemXUSUhQXcvDhbTq4w8CS KwOXcgr0KJzrt6wmhXwhWA++7XsHjMtuNL6iPuCJEU0eoeFFKd+ERXD8wfZHJmowc2eS kMEa6C103i0miWZorXbkcOsZWUmw/Q/H/2j1b+q2e4tO27avKMil6FHkMIXRb54K7fbm hLqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-transfer-encoding; bh=P6YVZWBUFWlcamhIBe7Z7VEg+pW8Qz/lsfkXFEG9HZk=; b=oSrmb7nQZFmohRZ+FNd3ro5LZ8WSH3463hbwN53YKF31DbbqdsUyQAmLwiR95Hz5eC vaIfM9J86wiYmchlgXWck6lU2kSz1UpFdQoLypt55gRVKsqooPRbHGMjQU5Cb6CX6Kao H6Aq3ulHLezKCkltXgoE1O6tAkBJs67AR6uo67XVJLoGNBH8F1BDIwOHW/T0b066votf Co7Pc19NO1OHNwAEjR51Zr7mkc2OWD16F3hfFWRx0HWyUVmK6q1WMeGWexDqj2xVtC5h FC/b3VhUdIr6rNNMDJYdFWToKIW05nKK9cfxlWE47F9LZOT7zd/HsO90b353O6kejJwE gszQ== X-Gm-Message-State: AMCzsaWUtTDiWkM8ZyX7OqDHoH5nGk++NdYHYlYYEGurA84ZVgKtZLbi 15FqVUfETrCDYpXNMe/A55FM8w== X-Google-Smtp-Source: ABhQp+SJcfD7HhZfAZDwBj3horeNtk8pNfd9sbSBlLPLM0uL3vcPJ/szGnn0yNZ7uZaGCVtBFdt0EQ== X-Received: by 10.107.81.20 with SMTP id f20mr20723800iob.274.1509993886650; Mon, 06 Nov 2017 10:44:46 -0800 (PST) Received: from localhost.localdomain (50-243-4-3-static.hfc.comcastbusiness.net. [50.243.4.3]) by smtp.googlemail.com with ESMTPSA id d1sm4639168iti.35.2017.11.06.10.44.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Nov 2017 10:44:46 -0800 (PST) Message-ID: <5A00AD9D.1090708@gmail.com> Date: Mon, 06 Nov 2017 11:44:45 -0700 From: JD User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: how to code a timer loop in a sh script References: <5A00A826.2000501@gmail.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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:44:47 -0000 Be careful about using numeric values for true. Please read: https://www.dartmouth.edu/~rc/classes/ksh/cond-tests.html Feb 11, 2005 - ... test can be either the test command, or its alias, [ , or the /ksh//bash built-in [[ . ... Zero is taken to be "/True/", while any non-zero /value/ is "False". So, it depends on your shell ??? On 11/06/2017 11:24 AM, Michael Schuster wrote: > Try > > while [ 1 ]; do > do_stuff > sleep 600 > done > > Hth > > Michael > > > On Nov 6, 2017 19:21, "Ernie Luzar" wrote: > > 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. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >