in reply to How to run a .exe file from a Perl script?

Thank you Perl Monks, you shared your wisdom -> I have solved many problems just looking at posted threads and tutorials.
Here is my question: I run an executable from the DOS-like command line, just as the guy who started this thread.
The problem is that I have to start it many times (running the same executable) and each time the exe command will take a different time to perform its task.
I have to run the exe for a fixed, known number of times. This means that I need PERL commands to
(1) run the file from command line (ok, I got it...)
(2) check if the exe has finished the work
(3) if yes, go back to (1)
  • Comment on Re: How to run a .exe file from a Perl script?

Replies are listed 'Best First'.
Re^2: How to run a .exe file from a Perl script?
by Corion (Patriarch) on Nov 09, 2008 at 09:41 UTC

    system will wait until the program has finished and then continue your Perl program.

      Actually I discovered it just a few moments after posting the topic... :-|
      Thank you anyway :-)
        while running system command i got error like this 65280. could you suggest me what is this error. here i am calling c++ utlity. its not working