Page 1 of 1

Running scripts on the moi on a schedule

PostPosted: Tue May 12, 2015 10:34 am
by satDreamer
Does anyone know how to run scripts on the moi at a specified time? Any help would be appreciated.

Re: Running scripts on the moi on a schedule

PostPosted: Tue May 12, 2015 2:58 pm
by vpeter
Cron?

Re: Running scripts on the moi on a schedule

PostPosted: Wed May 13, 2015 6:42 am
by satDreamer
Hi vpeter. I'm trying to use cron but it doesn't seem to support the key word, @reboot. Using the keyword @reboot on your cron jobs will ensure that the command is run on every reboot. But for some reason, the version of cron on the moi doesn't seem to recognize the keyword, @reboot. Any other ideas?

Thanks

Re: Running scripts on the moi on a schedule

PostPosted: Wed May 13, 2015 2:58 pm
by vpeter
Maybe adding systemd service into folder /lib/systemd/system.

Re: Running scripts on the moi on a schedule

PostPosted: Thu May 14, 2015 4:26 pm
by satDreamer
Thanks, vpeter. That's a clever way to do the trick.