User Tools

Site Tools


run_program_at_boot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
run_program_at_boot [2016/12/13 21:28] – external edit 127.0.0.1run_program_at_boot [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 18: Line 18:
 <color blue>At the end of the file add a line to run the Python script:</color> <color blue>At the end of the file add a line to run the Python script:</color>
 \\  \\ 
-    sudo /home/pi/Python/UMD004.py &+    sudo python /home/pi/Python/UMD004.py &
 \\  \\ 
 \\  \\ 
-<color Red>Note:</color>+<color purple>Note:</color>
 \\  \\ 
 \\  \\ 
Line 27: Line 27:
 \\  \\ 
 \\  \\ 
 +\\ 
 +<color red>Warning!!!</color>
 +\\ 
 +This method means that the script will run on each login. So if after boot, a user logs in via an SSH session, the script will run again. This will cause issues, if this is a problem, try the Cron method [[run_program_at_boot_using_cron|here]].
 +\\ 
 +\\ 
 +
 +
run_program_at_boot.1481664528.txt.gz · Last modified: 2023/03/09 22:35 (external edit)