can perl program do this?

2008-07-31 Thread Richard Lee
say I have big wireshark file based on remote server. I want to logon to that server and using Net::Pcap to poke the file and only grep out small portion of information which meets my criteria. Remote server won't have Net::Pcap installed. I wanted to write this program w/ Expect modules and

Re: can perl program do this?

2008-07-31 Thread Rob Coops
If you can make Net::Pcap connect to a remote server things will work fine, I am not sure about using Net::Pcap to do this as I never used it and from the description it seems to be a packet capture lib not so much a communication one, but as I said if you can make it reach out and talk to the

Re: can perl program do this?

2008-07-31 Thread Richard Lee
Rob Coops wrote: If you can make Net::Pcap connect to a remote server things will work fine, I am not sure about using Net::Pcap to do this as I never used it and from the description it seems to be a packet capture lib not so much a communication one, but as I said if you can make it reach

Re: can perl program do this?

2008-07-31 Thread Rob Coops
Ah, I see... I think you have been misled by the name of the Net::Pcap lib, the lib is meant to produce the file you are trying to poke around in. I would do the follwoing. - Use Net::SSH or similair to connect to the remote machine. - On the remote machine use grep or similair to pull

Re: can perl program do this?

2008-07-31 Thread Richard Lee
Rob Coops wrote: Ah, I see... I think you have been misled by the name of the Net::Pcap lib, the lib is meant to produce the file you are trying to poke around in. I would do the follwoing. * Use Net::SSH or similair to connect to the remote machine. * On the remote machine use

RE: can perl program do this?

2008-07-31 Thread Thomas Bätzler
Richard Lee [EMAIL PROTECTED] asked: [Full quote deleted. Please quote only the relevant parts of the mail you're replying to. Thank you!] but I am interested in grepping out the pcap file so I cannot simply just do grep Please use some common sense. You can't use Net::Pcap on host X to

ARGV array regarding

2008-07-31 Thread suresh kumar
Hi, This is my part of the script, if (($#ARGV == 1) ($ARGV[0] eq -f)) { .. if ($ARGV[0] ne -f ) { .. if i run my script i am seeing this kind of warnings. Use of uninitialized value in string eq at

Re: ARGV array regarding

2008-07-31 Thread Rob Dixon
suresh kumar wrote: This is my part of the script, if (($#ARGV == 1) ($ARGV[0] eq -f)) { .. if ($ARGV[0] ne -f ) { .. if i run my script i am seeing this kind of warnings. Use of

Re: ARGV array regarding

2008-07-31 Thread Mr. Shawn H. Corey
On Thu, 2008-07-31 at 18:00 +0530, suresh kumar wrote: Hi, This is my part of the script, if (($#ARGV == 1) ($ARGV[0] eq -f)) { .. if ($ARGV[0] ne -f ) { .. if i run my script i am seeing

Re: Unable to read the string

2008-07-31 Thread Rob Dixon
Arun wrote: Hi this is Arun here, i am new to perl.Here i am trying to read a string from the serial port but i am not able to and this is my program: # Read serial port until message or timeout occurs sub ReadPort($$$) { (my $String, my $TimeOut, my $Display) = @_;

RE: Unable to read the string

2008-07-31 Thread Bob McConnell
From: Arun Hi this is Arun here, i am new to perl.Here i am trying to read a string from the serial port but i am not able to and this is my program: You don't show the initialization for that port. How was it configured and do all of the settings match the device talking to it? The most

Re: How do I use HTML::Stripper without lwp?

2008-07-31 Thread bdy
On Jul 24, 5:57 pm, [EMAIL PROTECTED] (Rob Dixon) wrote: bdy wrote: My code is as follows: use strict; use HTML::Stripper;    useLWP::Simple qw( get );      my $stripper = HTML::Stripper-new(        skip_cdata = 1, strip_ws = 0  );        my $page_html =