[LA.pm] does system() wait?

Robert Spier rspier at pobox.com
Mon Feb 21 20:56:52 PST 2005


> system("...realplayer  song1.mp3");
> system("...realplayer  song2.mp3");
> system("...realplayer song3.mp3");
> 
> I expect the three songs to be played in sequence. Instead only song3 is
> played. It seems all three system() function are executed but one
> overrides the other. I  believe Perl waits for system() to  finish  
> before continuing. Is it not so in the PC environment? Thanks

This isn't a perl issue so much as a realplayer issue.  The process
you fire off returns immediately after communicating to the already
running process on your machine to play the song.  it does actually
begin to play song1 and song2, but it happens so quickly that you
don't notice.

-R


More information about the Losangeles-pm mailing list