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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
system call

 



ms10380
Novice

Oct 22, 2009, 6:48 AM

Post #1 of 2 (193 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?


Thanks


shawnhcorey
Enthusiast


Oct 22, 2009, 6:57 AM

Post #2 of 2 (191 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.

See:
perldoc -f exec http://perldoc.perl.org/functions/exec.html
perldoc perlthrtut http://perldoc.perl.org/perlthrtut.html
perldoc threads http://perldoc.perl.org/threads.html

__END__

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

Perl documentation is available at perldoc.perl.org. 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