I try to start a python program (for accessing the camera, but that is irrelevant) every time the raspberry pi boots.
The tutorials I read said one should add the corresponding command in /etc/rc.local
. In my case the command is (sleep 10;python /home/pi/Desktop/execute_on_boot.py)&
If I enter this exact command into the terminal, it works fine, but I am not sure whether it works after booting, because there is no terminal showing me the outputs of that script. It would be really handy to have an open terminal for that python program.
So is it somehow possible to open a terminal from python? Or can I alter the command somehow in order to automatically allow a terminal?
Or should a terminal open anyway but I did something wrong?
lxterminal
command alone. I read somewhere thatrc.local
gets executed before the user is logged in, so there is no way to get an input or output (whether opening a console or writing a file). So the problemw as that my approach did not work at all. Do you know another method of starting a script e.g. after login? – flawr Aug 20 '15 at 09:56