title: When press button, python script runs automatically on Raspberry Pi
body: <p>Can't find tutorial online.</p>
  
  <p>When I press a button, I want some python script to run. I don't want to run the python script first on the Raspberry Pi's terminal and then wait for the button to be pressed like some tutorials mention. I also want the whole script to run after I press the button, not that I have to press the button for the whole duration of the script to run.</p>
  
  <p>Basically, I want the script to run without having to have a HDMI monitor or mouse connected to Raspberry Pi or a GUI thing. Just the press of a button.</p>
  
  <p>Also if anyone has diagrams on how to set up the button with the GPIO and code that would be really helpful.</p>
  
  <p>How do I do this?? I can't find anything on it and it seems so simple.</p>