Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Mar 2022 14:36:19 +0100
From:      Jos Chrispijn <bsduser@cloudzeeland.nl>
To:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Crontab | random execution time
Message-ID:  <9e16ee69-3793-41f5-385f-71d87dedcf2c@cloudzeeland.nl>

index | next in thread | raw e-mail

Dear list,
I am trying to run a cron job, starting once every two hours and at 
random minute  in the half our of that cron scheme:

SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/etc
0~30   */2     *       *       *       root /root/cronjobs/run_myjob

Unfortunately it is running exactly on the hour instead of random 
between 0-30 minutes.
Can you pls advice how to make this work?

Thanks
Jos Chrispijn




help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9e16ee69-3793-41f5-385f-71d87dedcf2c>