Sample Header Ad - 728x90

Crontab with sudo not working on Debian BeagleBone Black

0 votes
1 answer
1993 views
On my Beaglebone Black device, I want to run python code at startup which is shared here https://github.com/acseckin/hmrid . The python code requires super user privileges. The Debian version I used on the device was installed with the image "Debian 8.7 2017-03-19 4GB SD IOT". The code works fine from the terminal. > sudo python /home/debian/hmrid/runhmrid.py Debian users and roots crontab does not work when I append the following line. > @reboot sudo python /home/debian/hmrid/runhmrid.py But other code that does not require a super user is working perfectly when I add a crontab for a Debian user like > @reboot python /home/debian/hmrid/runNotSuperUser.py
Asked by acs (125 rep)
Jun 28, 2017, 06:34 PM
Last activity: Oct 17, 2017, 06:25 PM