CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
system call



Oct 22, 2009, 6:48 AM

Post #1 of 2 (197 views)
system call Can't Post

I am trying to start windows media player from the command line to play a file, but I do not want to wait for the process to complete. Is there anyway to do this. My code right now is

system("C\\Program Files\\Windows Media Player\\wmplayer.exe $mediaplaylist");

but this does not continue to the next line of my script as it is waiting for media player to complete playing all file and for me to manually close it. Is there some command/flag for system which can help here?



Oct 22, 2009, 6:57 AM

Post #2 of 2 (195 views)
Re: [ms10380] system call [In reply to] Can't Post

In Reply To
Is there some command/flag for system which can help here?

No. The best way to do something like this in Windows is to use threads.

perldoc -f exec
perldoc perlthrtut
perldoc threads


I love Perl; it's the only language where you can bless your thingy.

Perl documentation is available at The list of standard modules and pragmatics is available in perlmodlib.

Get Markup Help. Please note the markup tag of "code".


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives