Hi all,
I sent this question couple of weeks ago, but all the solutions
I tried were not quite what I wanted.
I have a perl cgi script, and I am calling two cli programs in it.
The perl script looks something like this:

........................

call program1;

for ( some condition )
{
        ......................
        call program2;
        ......................
}

My problem is that I want progam 1 to start and continue running while
program2 is still running (program2 as you see might run more than once). 
I tried using the "system" function but this function will wait first for
program1 to complete and
then it will go to program2 and run it.
I tried doing system("start program1"), the problem is that I have to put
the main perl script to sleep for a few seconds in order for everything to
run fine, but I really don't like this way because if program2 causes a
delay then the results that program1 will create will not be complete.

Do you guys have any suggestions? What do you think about the Win32::Process
library? Somebody mentioned that I could use that, but I am not sure how...

Thank you for your time and help!

-Lia-

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to