Program order in crontab
Scott
freebsd-lists-5 at thismonkey.com
Mon Dec 30 14:32:24 UTC 2019
> 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
They would run asynchronously, although I'm not sure of the order they would
be started.
The cron code may shed some light (I would assume top down but I haven't
checked the code).
If you wanted to ensure they are run synchronously just put them on one line
separated with a '; '.
Scott
More information about the freebsd-questions
mailing list