popen2.Popen3 doesn't work well for me

Steve Holden steve at holdenweb.com
Wed Mar 9 05:12:41 EST 2005


alexrait1 wrote:
> I launch my python. Then I write this:
> import popen2
> popen2.Popen3("mplayer *.mpg")
> 
> it starts playing for 2 seconds.. and then stops...
> if I quit python (ctrl - D)
> mplayer continues to run and plays music as it should...
> 
> Any ideas?
> 
It looks like the process you start is blocking on standard input or 
output. Does

   os.system("mplayer *.mpg")

do what you want?

regards
  Steve




More information about the Python-list mailing list