terminate a linux command line utility from python

view full story

http://stackoverflow.com – I've got a command line utility from canutils called candump. It works like this: I run candump (specifying the bus from which I want to dump) root@beaglebone: candump can0 It then runs until I end it using CTRL+C However, when I run it in a python script like so. Popen(["candump","can0"],stdout=PIPE) or call(["candump","can0"]) I'm not sure how to end it. Any ideas? (HowTos)