Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: how to debug CGI when response is slow

by Khen1950fx (Canon)
on May 12, 2012 at 08:20 UTC ( [id://970151]=note: print w/replies, xml ) Need Help??


in reply to how to debug CGI when response is slow

To call $java_res from a script:
#!/usr/bin/perl -l use strict; use warnings; use CGI qw/:standard/; my $java_res = `java '<XML string>' http://weburl 2>/err.dat 1>/out.da +t`; open STDERR, '>', '/root/Desktop/err.dat' or die $!; open STDOUT, '>', '/root/Desktop/out.dat' or die $!; binmode STDOUT, ':encoding(UTF-8)'; print Dump $java_res; if ($java_res eq 1) { print "Result = [OPERATION SUCCESSFUL]"; } else { print "Result = [OPERATION UNSUCCESSFUL]"; } close STDERR; close STDOUT;

Replies are listed 'Best First'.
Re^2: how to debug CGI when response is slow
by Anonymous Monk on May 12, 2012 at 10:19 UTC

    To call $java_res from a script:...

    What a bunch of nonsense

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://970151]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found