From owner-freebsd-questions@freebsd.org Sun Dec 29 22:10:17 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 66B371EC2DE for ; Sun, 29 Dec 2019 22:10:17 +0000 (UTC) (envelope-from kappei84@gmail.com) Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47mF9j28y8z4BQ1 for ; Sun, 29 Dec 2019 22:10:17 +0000 (UTC) (envelope-from kappei84@gmail.com) Received: by mail-wr1-x42b.google.com with SMTP id j42so31174171wrj.12 for ; Sun, 29 Dec 2019 14:10:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=i0g115DYbtCdl80lOpu9VhgoJo0ihh0EtpDHwGJG+t0=; b=N3vOaKW06Mi61EpuMf9DLpSGdOEc8A1KVLu2y8LieerpL4EC9j17Wfr+uNxiZLjZOa Dt1pXvhG6bH/NDDbj6qzqp3ajL/5RwsgMceoIi5yVdT2wjurZstyFCCmgpAm7ElotPmw TOOfTnGs64w+9QuLT7cilhiOocuAeskT3aC1C115LDSq11t/OFl9+YYiA26zY1iTllZO uYmO4HM2oUJozPDTeZFn/ck6Ur/Bg1/zV0KGENbk45qR3bVseMjMDnOFchbw54BY1ult t8VgyHTP2hn+1empZ3FtQQeSxAIlsuwm7G2YegCp+6K8SdHZy63Ko/nnEzneiJnmXYem ZBtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=i0g115DYbtCdl80lOpu9VhgoJo0ihh0EtpDHwGJG+t0=; b=RnRGKHijsPs3aTYg02O+92UXeIbhFhfshivncUWI0XJT6VGbZhpfNeTGyCbfjaL2OL bWaxhZ8WK6/xz6/c9jxyfmlv3TRBUd1LthzSdNgJQaUye86GYOeGnpmkc+MrKhVzw+Xa 2Fht4FaFvyBCFd5puZmf7Zbr9ZA7m0JxVUDwxv8st6eryu0bre3Z/d8H13+LQmiVb8PC MeXvo/b/1Pg1q3LvPYwxH7qopfjx8HzJop3sB1qDsoEg7H7G0BJ76lRZ0V0NZt5x0aMn 2oYxCm3HvFJpxFrb9jGYnhKyIu9uBKfO7l/AbemYzIJctyx/XHMVOjCpj7Q3bHFHcFHr NxuQ== X-Gm-Message-State: APjAAAXUSgqXUWmdqZzyuPWWsS2hhof66ibtX3y+7G2cRNfWHh3OE0Gw olZaFZ33QT2HhiraZEtvINnfYdymBoXE47SFzI3ojSo= X-Google-Smtp-Source: APXvYqzngdnPnubuAIcj1awCR8/oLC9MURz+B4YcpoIQFFyEviKMPRn9QyAoqqmJ1tlaU0E2R2glAInu3IzOLrSZ/qs= X-Received: by 2002:adf:81c2:: with SMTP id 60mr61059969wra.8.1577657415379; Sun, 29 Dec 2019 14:10:15 -0800 (PST) MIME-Version: 1.0 References: <20191229160338.07aa34c0@scorpio> In-Reply-To: <20191229160338.07aa34c0@scorpio> From: HiMyNameIsIlNano Date: Sun, 29 Dec 2019 23:10:03 +0100 Message-ID: Subject: Re: Program order in crontab To: FreeBSD Mailing List X-Rspamd-Queue-Id: 47mF9j28y8z4BQ1 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Dec 2019 22:10:17 -0000 Il dom 29 dic 2019, 22:03 Gerard E. Seibert ha scritto: > In a standard 'crontab', if I have three programs as show below, do they > run in order as listed or all at one time, or something else? Does each > program finish before the next one starts? > > */5 * * * * /usr/home/gerard/Scripts/Program1.sh > */5 * * * * /usr/home/gerard/Scripts/Program2.sh > */5 * * * * /usr/home/gerard/Scripts/Program3.sh > > Thanks > > -- > Jerry > Hi, from what I gather from this thread https://lists.freebsd.org/pipermail/freebsd-questions/2003-July/011538.html the order is bottom up, but I would not bet on that. If you need to ensure that your scripts are run in a given order I would write a wrapper script to orchestrate the tasks and avoid that your logic breaks in case the underlying cron implementation changes. >