Can´t get crontab working

Hi,

I have this in my root crontab and have saved and restarted crontab after I wrote it but it is not working. However, if I enter each command into the terminal without the ¨@"the command works. Here is what I currently have in my crontab:

@reboot echo 1 > /sys/devices/platform/leds/leds/bpi-r64:pio:blue/brightness
@reboot echo 0 > /sys/devices/platform/leds/leds/bpi-r64:pio:green/brightness
@midnight sudo dd if=/dev/mmcblk1p66 bs=20M| gzip -c > /mnt/sda1/backup.img.gz
#gunzip -c /mnt/yourddimage.img.gz | dd of=/dev/sdX
#End

~

The @reboot shortcut is not recognized by BusyBox crond, so use /etc/rc.local instead.

3 Likes

Ah ok what about the "@midnight" do I need to put the in "rc.local"?

@midnight should be supported, but better use 0 0 * * *

3 Likes

Ah ok. Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.