I have my raspberry pi 3 running a python script that manipulates some strings and according to that they sometimes pipped to minimodem. How can i be sure that the pipped subprocess is finished so I can manipulate a gpio state on or off? Can the subprocess.call function help?

This is the code that I am using currently.

if key_pressed==0 and key!=0:
    message_string = ''.join(message)
    p1 = subprocess.Popen(["minimodem" , "--tx" , "300"], stdin=subprocess.PIPE)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.