![]() ![]() If the program has auto run but is in a loop and you can't kill it! If you need to kill your program running in the background you can use this "sudo" assumes you want your application run with root user privileges (remove if not) and the "&" says do it in the background. You can setup the auto run using a script (see here), or you can do it directly by editing the rc.local file:Īfter the initial comments (lines beginning with '#') add the following lines: It seems there is some sort of caching action going on so after doing this use sudo reboot the first time rather than cycling the power! However if we use sudo reboot at the command line it works as it should. We've found that when copying a new file to the rpi using WinSCP, changing its properties to 755 and verifying all is OK that if we kill the power and power up again the executable doesn't run. Or using a different tool set its chmod to 755 (rwxr-xr-x). Sudo chmod +x /home/pi/projects/my_project.a Select the permissions tab, check the ‘Make the file executable’ box and press OK. ![]() ![]() Right click on the file and select properties. Auto running terminal applications (non GUI)įirst ensure your program is executable by finding it in the file manager. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |