Doug MacEachern wrote:

On Tue, 4 Dec 2001, Stas Bekman wrote:


Actually, we don't have to run -t to test for failure, since the normal execution fails as well and for all cases (not only syntax errors). The problem is that we run:

  system "command &";


we can run "$cmd -t|" before that and check if the output contains "Syntax OK" or not.

ok, but that catches only syntax errors. if we can catch the return status from system() we can catch all errors, causing the failure.



_____________________________________________________________________ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



Reply via email to