Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Dec 2019 01:31:59 +1100
From:      Scott <freebsd-lists-5@thismonkey.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Program order in crontab
Message-ID:  <20191230143159.GA80921@thismonkey.com>
In-Reply-To: <mailman.102.1577707201.34855.freebsd-questions@freebsd.org>
References:  <mailman.102.1577707201.34855.freebsd-questions@freebsd.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
> 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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20191230143159.GA80921>