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:
Writing a program that launches two different executables

 



fredsmith
New User

Aug 8, 2009, 2:51 PM

Post #1 of 3 (393 views)
Writing a program that launches two different executables Can't Post

Is it possible to write a Perl program that launches two separate executable files? I have tried to write such a program, but it runs the first executable and then stops. Here it is:

@args = ( 'C:/PMAIL/Programs/winpm-32.exe -A',
'C:/Program Files/Mozilla Firefox/firefox.exe' );
system(@args[0]);
system(@args[1]);

Is there are a way to modify this, so that it will also launch the second program? Thanks for your help.


spider
User


Aug 9, 2009, 11:26 PM

Post #2 of 3 (379 views)
Re: [fredsmith] Writing a program that launches two different executables [In reply to] Can't Post

This is almost just guessing (I think i read something like this once), but I have never tried and also I do all my programming on unix.

I think that system runes an external program, wait until it is finnished, and than returns. I therefor would beleve that it should start the second program when you close the first one.

exec is another function you could try. I think that works slightly different. Please read the description of these function. You can find doc on perldoc.perl.org.


fredsmith
New User

Aug 11, 2009, 3:29 PM

Post #3 of 3 (371 views)
Re: [spider] Writing a program that launches two different executables [In reply to] Can't Post

Dear Spider,

Thanks for your help.

Kind regards,

F. Smith

 
 


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

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