#!/bin/perl
use strict; use warnings;
my $cmd = system('netstat -s')or die "Could not run command: $1"; my $cmd = system('netstat -a | grep tcp')or die "Could not run command: $1";
HTH Jas
[EMAIL PROTECTED] wrote:
Is there a CPAN module to pull netstat summary information from a system?
Rather than run 'netstat -s', I was hoping to find some way within perl.
What I basically want to do is generate a couple of reports from the summary output. ICMP and TCP information. If someone can point me in the right direction I should be good to go :-)
Thanks
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>