int he past, I had a script in /config/scripts which needed to run every 5 minutes.
As vyatta cleared the crontab with every boot, I made use out of the vyatta-postconfig-bootup.script script:
grep -q updater.sh /etc/crontab 2> /dev/null || echo "*/5 * * * * vyatta sudo /config/scripts/updater.sh" >> /etc/crontab
checking the /etc/crontab, it seems that this still works, as the crontab file gets updated with the needed command:
*/5 * * * * vyatta sudo /config/scripts/updater.sh
But: it doesn’t run.
I searched a bit and have seen that vyos has meanwhile integrated a task scheduler (GREAT idea).
How exactly does it work? I checked the wiki, but there is only a config guide.
Is any cron file updated? which one?
as you can see I run the script as user “vyatta” (is this user still there?) which in turn runs a sudo.
after a while I checked messages and see the following:
Dec 22 11:41:01 vyattahome cron: Error: bad username; while reading /etc/crontab
Hmm, really need to understand it a bit more