Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Raspberry Pi (RaspBMC) cronjobs not working

I have attempted adding cronjobs via SSH at /etc/crontab and also crontab -e. Neither one seems to work at all!

like image 374
user3380826 Avatar asked Mar 23 '14 14:03

user3380826


People also ask

Why crontab is not working?

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.

How do I know if crontab is running on Raspberry Pi?

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.

How do I turn off crontab on Raspberry Pi?

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.


2 Answers

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

like image 178
user3380826 Avatar answered Sep 19 '22 07:09

user3380826


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
like image 26
Mr.J.R. Avatar answered Sep 21 '22 07:09

Mr.J.R.