So, before I start trying to piece something together from random internet tutorials and the python user guide.
TL;DR: What's a fairly simple way to spin of a sub-process (basically, another application with parameters), and then interrupt (^C) when necessary to have it close itself and end the sub-process.
Longer form:
I'm doing a RPi app that will, using rtl_sdr, tune into FM radio. I'm doing a Python application that reads from LCDProc (as I'm using a character display with buttons) to start/stop/change channel, etc. I suppose I could use pyrtlsdr, and pyalsa to send the data out to play the audio...but that sounds like even more work than just spawning a sub-process, and when I need to change the channel or stop playing the radio just send a ^C to kill it off and spawn another one as needed. This should be pretty simple to do, right?
TL;DR: What's a fairly simple way to spin of a sub-process (basically, another application with parameters), and then interrupt (^C) when necessary to have it close itself and end the sub-process.
Longer form:
I'm doing a RPi app that will, using rtl_sdr, tune into FM radio. I'm doing a Python application that reads from LCDProc (as I'm using a character display with buttons) to start/stop/change channel, etc. I suppose I could use pyrtlsdr, and pyalsa to send the data out to play the audio...but that sounds like even more work than just spawning a sub-process, and when I need to change the channel or stop playing the radio just send a ^C to kill it off and spawn another one as needed. This should be pretty simple to do, right?