[plug] cron job advice

Thomas Cuthbert tcuthbert90 at gmail.com
Wed Jun 15 07:06:36 AWST 2022


 I would use a systemd timer. OnBootSec might be what you need
https://www.freedesktop.org/software/systemd/man/systemd.timer.html

On Tue, 14 June 2022, 7:45 pm Gregory Orange, <home at oranges.id.au> wrote:

> On 14/6/22 19:33, leighton at clucas.eu wrote:
> > 1. I want to set up a cron job that runs 5 minutes after boot to run a
> > script from github. It needs to happen say 5 minutes after boot to
> > ensure that an internet connection has been established. I can use
> > @reboot but that would occur immediately on boot when there would be no
> > internet.
>
> Hack job:
>
> @reboot sleep 300; ~/bin/do-thing.sh
>
> _______________________________________________
> PLUG discussion list: plug at plug.org.au
> http://lists.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.org.au
> PLUG Membership: http://www.plug.org.au/membership
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20220615/0887abc6/attachment.html>


More information about the plug mailing list