Alejandro Galue wrote:
Hello All,

I´m using mod_perl2 and Apache2 over Fedora Core 1.

I have a handler that need to call an external program to complete the
request.

This program put its output to a file, and then I read this output from the
handler (after system function) to complete the request.

My problem is (I assume) when I call system, it returns inmediatly and of
course when I try to read the file output, it does not exist; becase it was
created later.

How can I force to wait for a system function terminate the execution of an
external program.

Sounds like a generic perl question, not really specific to mod_perl. Take a look at IPC::Run or IPC::Run3. Hopefully you will find a better place to discuss this, like perlmonks.org. Thanks.


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to