I am trying to pass a string literal to a Popen command, but it is isn't working:
subprocess.Popen(['/usr/bin/festival', '-b', '(SayText "%s")']) % text
The idea is that I want to pass text into the Popen command, which calls the program festival, which will read the input text.
Is it possible to pass a string literal inside a popen command? My guess is that this isn't working because the Popen commands are in a list.