I have attempted adding cronjobs via SSH at /etc/crontab and also crontab -e. Neither one seems to work at all!
Why is crontab not working in your system? Crontab might fail for a variety of reasons: The first reason is that your cron daemon might not be working for any reason, resulting in your crontab failing. There also exists a possibility that your system's environment variables are not settled correctly.
Method # 1: By Checking the Status of Cron Service Running the “systemctl” command along with the status flag will check the status of the Cron service as shown in the image below. If the status is “Active (Running)” then it will be confirmed that crontab is working perfectly well, otherwise not.
Unplug the Raspberry Pi to another machine, if at Windows, it is the boot drive that you able to see from your Windows Explorer directly. Open the file 'cmdline. txt' at the SD card boot drive and add 'rw init=/bin/sh' to the end. After that, plug back to Raspberry Pi and boot.
Activate cron jobs in Raspbmc Per default running cron jobs is deactivated in Raspbmc and there are two ways to activate them. - In the Raspbmc GUI under Programs -> Raspbmc Settings -> System Configuration -> Service Management -> Cronjob Scheduler - Via SSH/FTP by modifying sys.service.cron value to “true” the settings file under /home//.xbmc/userdata/addon_data/script.raspbmc.settings/settings.xml
Since xbmc
has been renamed to kodi
(version 14.x), the new path is
/home/pi/.kodi/userdata/addon_data/script.raspbmc.settings/settings.xml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With