I've created a script
Code:
#!/bin/bash
sudo python scratch_gpio_handler.py
that runs a python program to handle traffic between Scratch and the GPIO pins on a RaspberryPi.
This program consumes a lot of CPU (as its just sits in a loop awaiting changes) and I'd like to kill it when I finished.
Looking at ps aux I've got these 3 lines
/bin/bash ./sgh (the name of the script file)
sudo python scratch_gpio_handler.py
python scratch_gpio_handler.py
My question is do I have to kill all three or can I get away with just killing the last one?
regards
Simon