From owner-freebsd-questions@freebsd.org Mon Nov 6 18:24:15 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 957B8E645DF for ; Mon, 6 Nov 2017 18:24:15 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com [IPv6:2607:f8b0:400d:c09::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 4EB9D7DF0C for ; Mon, 6 Nov 2017 18:24:15 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: by mail-qk0-x22d.google.com with SMTP id o187so12106028qke.7 for ; Mon, 06 Nov 2017 10:24:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LnrS4kdCF48sQ00LtFW7YRwyWVvvj3iKt1VzrsHNIiY=; b=vGzNgeVgJa8NmaSRnkeef/5StmEn5mIWntCFURwnEtlDYPfKbFUyJBabFNyZzbptKF 9M9w8bNkXAxckusmPcOOQHPuYAZil53XcIRZ0ipdsYoFK3FOBTlXNMbEflWCRoFFnLFZ GAsCnN4HqSroz1iYx1ib1uBhwD1dPukITMFyg7mIFHFCNL1PPF0bFkH9aecDTNB24zbr MSxEihG52Gt2AJTujS2z3X2riKzIINqjq3+odFRdMFfyXs/y+gW2srfOTp2lCCXyePSf sPMK+uZRTYvkVjwWw8b+W2a1CdXc/aRFsZXZJlyLI3vQE/+ihp/wiD+2ou+1XxLMVwBT GqdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=LnrS4kdCF48sQ00LtFW7YRwyWVvvj3iKt1VzrsHNIiY=; b=VEP2C7Og+mxi43nzlcEZle6SKRU/AKd5WaxeD4cqRJ0XwCQ4oLwj3ZPBHVcrdaU69b R99hTNpfQeGEEZfZ/zWR9S1MGaEawfr1RvhFFspnz4jvcdiy99Fmchi65Pv5gWHLoGQt YR2XLCAxmGqPreQaaVAyt1ayN3cQ4Bl3yOeQRRW7ZV93TN1CFIHVTZ6abq8rdliKpcUy F0Qqx5tKGVX06qimh5bsFpFeMZJwsTs7SAYkzm8QKhuNRDDRDLGgv0YyobJ6bC3FGeSH BvlbS6lRXNZjGenXchg8zPpd0RMdNit0jYtmnNOZlflgi8Mv2Oqjf2yISsxnT6tK0kI1 7fUg== X-Gm-Message-State: AJaThX6I+oFEKROvqfuJif51X/mtjQgYxFHwWjvBuyRaQ+Wreu20Brk0 fWV+SHipapPCs6UI85W73XsZS3ECK1+Pc7EE5ns= X-Google-Smtp-Source: ABhQp+RPKtR6x9UZCFXuYTqIHKkbRPbnOIfNDpg8suvIOdswKb3a8qK70GF/64Jo7PYE7KvYj2K7oxkWOm2/EW21aTM= X-Received: by 10.55.27.88 with SMTP id b85mr6486498qkb.144.1509992654391; Mon, 06 Nov 2017 10:24:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.152.29 with HTTP; Mon, 6 Nov 2017 10:24:13 -0800 (PST) Received: by 10.12.152.29 with HTTP; Mon, 6 Nov 2017 10:24:13 -0800 (PST) In-Reply-To: <5A00A826.2000501@gmail.com> References: <5A00A826.2000501@gmail.com> From: Michael Schuster Date: Mon, 6 Nov 2017 19:24:13 +0100 Message-ID: Subject: Re: how to code a timer loop in a sh script To: Ernie Luzar Cc: freeBSD Mailing List Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:24:15 -0000 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"