I am trying to run a cron job at boot time:
@reboot sleep 300 ; cp -f /media/HD2400/epg.dat /etc/epgimport/epg.dat ; wget http://192.168.178.15/api/loadepg
Tried also:
@reboot sleep 300 && cp -f /media/HD2400/epg.dat /etc/epgimport/epg.dat && wget http://192.168.178.15/api/loadepg
The bash commands, when entered in a telnet window, just work as expected.
However I find in the log for the box:
Feb 28 07:59:21 sh1 cron.err crond[428]: user root: parse error at @reboot Feb 28 07:59:21 sh1 cron.err crond[428]: user root: parse error at sleep Feb 28 07:59:21 sh1 cron.err crond[428]: user root: parse error at 300 Feb 28 07:59:21 sh1 cron.err crond[428]: user root: parse error at ; Feb 28 07:59:21 sh1 cron.err crond[428]: user root: parse error at cp
I am making a mistake in the crontab, but I cannot figure out what it is. Any help?
BTW: other crontabs just work prefectly.
Willy
Edited by doglover, 28 February 2020 - 08:13.