We have been trying to use crontabs to run on launch a mavproxy script. we are using a jetson nano as well as a xavier. we can run the mavproxy command without issue through the terminal. we can turn the xavier and nano fan on as well as other tasks from the crontabs. we have made sure that there is not a permissions issue as well as added the user to the dialout group. we even chmod 777 /dev/ttyTHS1. Any suggestions would be very appreciated!
Take a look at in here
Write your own systemd service. That’s a better solution than either crontab or modifying rc.local.
You can even have the service run as a specific user to avoid permissions issues.
This article describes it fairly well, though there are plenty of others if you simply do a web search for systemd.