0

I am trying to run either at boot or at intervals of 5 min (everytime basically) a command that enables me to use my remote control.

Thus sudo crontab -e -u root, I add in crontab the following line:

*/5 * * * * sudo ir-keytable -a /etc/rc_maps_cfg -s rc0
@reboot sudo ir-keytable -a /etc/rc_maps_cfg -s rc0

and the command does not work. Bear in mind it works when I run it via terminal as per usual.

1 Answer 1

0

There is no need to use sudo within the root crontab.

Give the full path to the commands in the crontab.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.