Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 2019 23:10:03 +0100
From:      HiMyNameIsIlNano <kappei84@gmail.com>
To:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: Program order in crontab
Message-ID:  <CAC=ypSXkOrEwStfsUhAHKUOGvKFSM80VRF=f6t5yCoYNYBgZOw@mail.gmail.com>
In-Reply-To: <20191229160338.07aa34c0@scorpio>
References:  <20191229160338.07aa34c0@scorpio>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Il dom 29 dic 2019, 22:03 Gerard E. Seibert <jerry@seibercom.net> 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.

>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAC=ypSXkOrEwStfsUhAHKUOGvKFSM80VRF=f6t5yCoYNYBgZOw>