I have a script that starts up a program of mine. I want it to run at boot. It works fine when I put it in crontab -e, but when I put it in sudo crontab -e nothing happens, not even a log file is produced. I wonder what could be the reason for it? I need root access for accessing the serial port in a new version of that program.
The crontab command is:
@reboot sh ~/project/tensorrt_demos/launcher2.sh >> ~/project/tensorrt_demos/smart_bike.log 2>&1