[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Perl CGI output truncated

On 28.10.08 15:39, Gerard Sharpe wrote:
> Scratching my head with an issue where my Perl CGI output is being
> truncated, however when running directly from the command line it
> works. I've tried apache2 without any chance.
> Below is a minimal version of a script I'm useing to pull info from a
> Cisco router and display in the web browser:
> ---
> #!/usr/bin/perl -w
> use strict;
> use CGI ':standard';
> my $output;
> print header;
> print start_html('Test');
> print h1('Testing...');
> $output = `rsh <cisco_router> ping <ip_addr>`;
> print "<pre>$output</pre>";
> print end_html();
> exit;

I don't see end-of-line character at the end...
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
On the other hand, you have different fingers. 

Reply to: