popen2.Popen3 doesn't work well for me
Steve Holden
steve at holdenweb.com
Wed Mar 9 05:12:41 EST 2005
More information about the Python-list mailing list
Wed Mar 9 05:12:41 EST 2005
- Previous message (by thread): popen2.Popen3 doesn't work well for me
- Next message (by thread): popen2.Popen3 doesn't work well for me
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): popen2.Popen3 doesn't work well for me
- Next message (by thread): popen2.Popen3 doesn't work well for me
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list