confused with subprocess.Popen

  • Thread starter Soumen banerjee
  • Start date
S

Soumen banerjee

Hello,
for a certain app, i used to use a command:
os.system("soundwrapper espeak -f line.txt")
now, if i wanted to kill espeak, i would have to run:
os.system("killall espeak")
since the subprocess module allows sending SIGKILL to the process, i
decided to switch to using it. However i cant pass the spaced out
arguments to it. For example:
a=subprocess.Popen("soundwrapper espeak -f line.txt")
results in a OSError, no such file or directory.
How do i use the Popen function?
Regards
Soumen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,291
Messages
2,571,453
Members
48,137
Latest member
IndiraMcCo

Latest Threads

Top