cant get crontab to work, well crontab starts, but the commands i put in there isnt executed on the times i set in the config, i want it to restart at 5pm, so in the config i put this
REBOOT RASPBERRY PI AT 5am
0 17 * * * sudo reboot
something i do wrong?
yup typo, just saw that either way crontab doesnt run the commands i want :-/
guran
3 March 2015 16:07
4
Have you installed cron? I am using cron on my osmc-pi2 for backup of .kodi dir. Had to install cron to get it to run.
sudo apt-get update
sudo apt-get install cron
yup, installed, reinstalled and even tried with a fresh sd card to be sure, im doing something wrong, but what?
Use the full path:
/usr/bin/sudo /sbin/reboot
gonna try that sam, back in a jiffy
noop didnt work, what the hell, /usr/bin/sudo /sbin/reboot works in the terminal but not in cron :-/ hmmmm
Make sure your crontab has an empty line at the end too.
What does journalctl show? Any activity in cron?
Is cron running? What is systemctl status cron
hmmm, now everything is working, deleted all cronjobs and made them again and run sudo service cron restart
finally