Skip to Main Content

Infrastructure Software

Announcement

Testing banner

More Flexibility for Cron

Steffen MoserJun 1 2020 — edited Jun 2 2020

Hi all,

we are running Solaris 11.4. it seems that Solaris' Cron does not support the slash notation, i.e. something like this:

      */5  *  *  *  * php -f /var/www/nextcloud/cron.php

which executes "php ..." every five minutes beginning with Cron's startup. Of course, I can list all minutes manually, e.g.

      0,5,10,15,20,25,30,35,40,45,50,55  *  *  *  * php -f /var/www/nextcloud/cron.php

but then I'll have the Cron-initiated activities at exactly the same minute. If I have ten or twenty zones with more than one Cron activity of this type, this might lead to load peaks on the host system which are just not necessary and lead to higher response times at exactly these minutes. Therefore I modify the execution minutes manually from zone to zone.

My questions are: Is there a more elegant way, maybe a better work-around for the above-given "/5" notation? At least, it seems to be quite common in Linux environments. Is there maybe something like a "GNU Cron" for Solaris? And where could we submit feature wishes for Solaris 11.4? Should we use our support contract?

Kind regards,
Steffen

Comments
Post Details
Added on Jun 1 2020
1 comment
61 views