Moderator Control Panel ]

Running scripts on the moi on a schedule

Running scripts on the moi on a schedule

Postby satDreamer » Tue May 12, 2015 10:34 am

Does anyone know how to run scripts on the moi at a specified time? Any help would be appreciated.
satDreamer
 
Posts: 13
Joined: Sun Nov 23, 2014 4:56 pm

Re: Running scripts on the moi on a schedule

Postby vpeter » Tue May 12, 2015 2:58 pm

Cron?
You can help me buy new work notebook with paypal donation, after 8 years it's time to upgrade.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FLVT7ACMYAPS6
vpeter
 
Posts: 427
Joined: Sun Jul 27, 2014 2:12 am
Location: Slovenia

Re: Running scripts on the moi on a schedule

Postby satDreamer » Wed May 13, 2015 6:42 am

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
satDreamer
 
Posts: 13
Joined: Sun Nov 23, 2014 4:56 pm

Re: Running scripts on the moi on a schedule

Postby vpeter » Wed May 13, 2015 2:58 pm

Maybe adding systemd service into folder /lib/systemd/system.
You can help me buy new work notebook with paypal donation, after 8 years it's time to upgrade.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FLVT7ACMYAPS6
vpeter
 
Posts: 427
Joined: Sun Jul 27, 2014 2:12 am
Location: Slovenia

Re: Running scripts on the moi on a schedule

Postby satDreamer » Thu May 14, 2015 4:26 pm

Thanks, vpeter. That's a clever way to do the trick.
satDreamer
 
Posts: 13
Joined: Sun Nov 23, 2014 4:56 pm


Return to MOI Pro

Who is online

Users browsing this forum: No registered users and 7 guests