Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Perl CGI output truncated
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
dippa  
View profile  
 More options Oct 28 2008, 12:28 am
From: dippa <gerard.sha...@gmail.com>
Date: Mon, 27 Oct 2008 21:28:06 -0700 (PDT)
Local: Tues, Oct 28 2008 12:28 am
Subject: Perl CGI output truncated
Hi,

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;
---

The problem being the output is being truncated:
---
Testing...

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to <ip_addr>, timeout is 2 seconds:
!
---

Missing:
---
!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/8 ms
---

I'm running:
# perl -v

This is perl, v5.8.8 built for i486-linux-gnu-thread-multi

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source
kit.

Complete documentation for Perl, including FAQ lists, should be found
on
this system using "man perl" or "perldoc perl".  If you have access to
the
Internet, point your browser at http://www.perl.org/, the Perl Home
Page.

# apache -v
Server version: Apache/1.3.34 (Debian)
Server built:   Jan 18 2008 19:16:57
---

Any help would be appreciated.

Thanks


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google