I have a program that I normally run as so:
sudo /home/pi/code/./main 12345
where 12345 is just a input. This code runs infinitely until I forcefully stop it.
However, I want my pi to do this automatically when turned on. It already automatically logs in so I tried to put the above line inside /etc/rc.local
unfortunately, when I restarted, the pi is stuck on the raspberry graphic(I'm in command line mode). Obviously this is from my program. What should I do so this program can run without obstructing everything else?
Luckily I had a backup so I can try again, but this time I'd like to do it right.