Hello! I'm working on Raspbian. I'm running into an issue where a shell script I want to run crashes if it is run with "sudo". I don't know why, and it's a third party program. All I know is I have to run it without admin. This is easy enough, just bash running the script on my pi account results in it working. However, when I schedule the script to run on reboot, the same error occurs! This is running on the local "crontab -e", not "sudo crontab -e". Anyone know why it crashes when run through crontab? How can I fix it? Thanks!
Here you can see it crashes when run with sudo, and succeeds when run without.
Here is the command I have running in pi's "crontab -e"
And here's the error I get when looking at the failure log after reboot (note, same error as when run with sudo!)
Here you can see it crashes when run with sudo, and succeeds when run without.
Here is the command I have running in pi's "crontab -e"
And here's the error I get when looking at the failure log after reboot (note, same error as when run with sudo!)