I am looking for a simple way to start a simple .exe program on every bootup using rc.local (unless there's an easier way).
Currently, the executable program I want to run is located in: /home/pi/boot and is running properly using the sudo mono command.
I am trying to make this run at boot in the rc.local and I currently just have:
sudo /home/pi/boot/EXENAME.exe
of course I have the #!/bin/sh -e
at the top of the file but not sure exactly how I should get this working.
sudo
in rc.local or anything it starts unless you've intentionally changed UID. It's already running root. Throwing insudo
cannot do anything good. See also: http://raspberrypi.stackexchange.com/questions/40493/log-output-of-background-or-boot-script – goldilocks Apr 01 '16 at 14:34