Parsing PIX Log

2005-10-06 Thread Kamal Ahmed
Hi, I am trying to parse : Sep 26 17:05:11 pixfw.testsec.org %PIX-3-106010: Deny inbound protocol 12 src outside:123.97.104.117 dst intf2:192.168.50.10 but ONLY to get the src IP , which is 123.97.104.117 and Destination ip , which is 2:192.168.50.10 Any help would be appreciated. Thanks,

regenerating AS perl html docs

2005-10-06 Thread Chris Wagner
Does anybody know how to manually regenerate the html documentation in the ActiveState perl tree? I just upgraded to build 813 and now the index pages are gone. I tried reinstalling and installing some packages but nothing recreated it. -- REMEMBER THE WORLD TRADE CENTER ---=< WTC 91

RE: how to interact with an endless loop

2005-10-06 Thread John Serink
Check the IO::Select docs... they work only for socket on Win32, you can't use them from file handles including STDIN unfortunately. Cheers, John > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Su, Yu (Eugene) > Sent: Friday, October 07, 2005 3:

Re: Cross platform issues

2005-10-06 Thread StoneBeat
hi Try adding Win32::Console->import; and Term::ANSIScreen->import; Before "require" El Jueves 06 Octubre 2005 10:13, John Serink escribió: > Hi All: > > Ok, I need to use either Win32::Console or Term::ANSIScreen depending > whether I'm on a Linux platform or Windoze box, so I do this: > if(

RE: how to interact with an endless loop

2005-10-06 Thread Chris Wagner
Use two threads. One sits on the console and waits for input. Meanwhile it spawns thread 2 which does all the work. When some input is received it can set a shared variable that thread 2 will notice and thus break out of the loop. At 01:47 PM 10/6/05 -0700, Su, Yu (Eugene) wrote: > will stop th

Re: how to interact with an endless loop

2005-10-06 Thread pDale
On 10/6/05, Martin, Greg (RTIS) <[EMAIL PROTECTED]> wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Su, Yu (Eugene) Sent: Thursday, October 06, 2005 3:08 PM I want to write a simple perl script to start an endless loop (for reading data from

RE: how to interact with an endless loop

2005-10-06 Thread Dirk Bremer
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Su, > Yu (Eugene) > Sent: Thursday, October 06, 2005 3:08 PM > To: perl-win32-users@listserv.ActiveState.com > Subject: RE: how to interact with an endless loop > > Hi All, > > I want to write a si

Re: how to interact with an endless loop

2005-10-06 Thread pDale
On 10/6/05, Su, Yu (Eugene) <[EMAIL PROTECTED]> wrote: Hi All,I want to write a simple perl script to start an endless loop (for readingdata from a periphery device, such as a measurement unit), but I also wantto be able to stop it anytime. Right now I use "Ctrl-Alt-Del" to do it. There must be a b

RE: how to interact with an endless loop

2005-10-06 Thread Su, Yu (Eugene)
will stop the looping until "Enter" is pressed. I like to see the program continues running until a key is pressed, some thing likes two parallel related processes. Thanks Greg. -Eugene -Original Message- From: Martin, Greg (RTIS) [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 20

RE: how to interact with an endless loop

2005-10-06 Thread Martin, Greg (RTIS)
You could try reading from STDIN and either quit on a Ctrl-Z or some other character Ex: #this reads in what you type and prints it #entering ctrl-Z is seen as a blank line and quits while () { print; } \\Greg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

RE: how to interact with an endless loop

2005-10-06 Thread Su, Yu (Eugene)
Hi All, I want to write a simple perl script to start an endless loop (for reading data from a periphery device, such as a measurement unit), but I also want to be able to stop it anytime. Right now I use "Ctrl-Alt-Del" to do it. There must be a better way. I has been trying to use open, pipe...no

FW: MY GUI gets blank

2005-10-06 Thread SolHai Haile
Any help? From: "SolHai Haile" <[EMAIL PROTECTED]> To: perl-win32-users@listserv.ActiveState.com Subject: MY GUI gets blank Date: Mon, 03 Oct 2005 10:51:29 -0700 I am new to perl/tk, but I am making a good progress. I wrote this script (perl/TK) to run a test on our appliance. The applinace

RE: Cross platform issues

2005-10-06 Thread Thomas, Mark - BLS CTR
I wrote: > $Bill Luebkert wrote: > > $windoze = 1 if $^O eq 'MSWin32'; > > Is this going to break on 64-bit Windows? Just curious. Maybe > we should all start using > > $windoze = 1 if index($^O, 'MSWin'); Oops! Index will return 0 in this case. You could use: $windoze = !index($^O, 'MSW

RE: Cross platform issues

2005-10-06 Thread Jan Dubois
On Thu, 06 Oct 2005, John Serink wrote: > if($^O eq "MSWin32"){ > # Check which OS > $console = Win32::Console->new(STD_OUTPUT_HANDLE); $console = Win32::Console->new(Win32::Console::STD_OUTPUT_HANDLE()); > } else { > $console = Term::ANSIScreen->new(); > } > > And that is th

Re: Cross platform issues

2005-10-06 Thread $Bill Luebkert
Thomas, Mark - BLS CTR wrote: > $Bill Luebkert wrote: >> $windoze = 1 if $^O eq 'MSWin32'; > > Is this going to break on 64-bit Windows? Just curious. Maybe we should all > start using > > $windoze = 1 if index($^O, 'MSWin'); You can always use a RE since you're only going to do it once:

RE: Cross platform issues

2005-10-06 Thread Thomas, Mark - BLS CTR
$Bill Luebkert wrote: > $windoze = 1 if $^O eq 'MSWin32'; Is this going to break on 64-bit Windows? Just curious. Maybe we should all start using $windoze = 1 if index($^O, 'MSWin'); - Mark. -- Mark Thomas Internet Systems Architect ___ BAE SYSTEMS In

Re: Cross platform issues

2005-10-06 Thread $Bill Luebkert
John Serink wrote: > However, this works: > use strict; > use warnings; > > my $windoze; > > BEGIN { > $windoze = 1 if $^O eq 'MWin32'; > if ($windoze) { > print "Looks like its Windoze\n"; > eval "use Win32::Console"; > } else { > print

RE: Cross platform issues

2005-10-06 Thread John Serink
However, this works: use strict; use warnings; my $windoze; BEGIN { $windoze = 1 if $^O eq 'MWin32'; if ($windoze) { print "Looks like its Windoze\n"; eval "use Win32::Console"; } else { print "Looks like its not Windoze\n";

RE: Cross platform issues

2005-10-06 Thread John Serink
Hi Bill: Ok, tried your example, here it is on windows: use strict; use warnings; my $windoze; BEGIN { $windoze = 1 if $^O eq 'MSWin32'; if ($windoze) { print "Looks like its Windoze\n"; eval "use Win32::Console"; } else { p

Re: Cross platform issues

2005-10-06 Thread $Bill Luebkert
John Serink wrote: > Hi All: > > Ok, I need to use either Win32::Console or Term::ANSIScreen depending > whether I'm on a Linux platform or Windoze box, so I do this: > if($^O eq "MSWin32"){ > # Check which OS > print("Looks like its $^O\n"); > require Win32::Console; > } else { >

AW: Cross platform issues

2005-10-06 Thread Dietmar Fiehn, Dr.
I don't know the modules but had similar problems with other (at least it seems so...) You may need to import the modules constants BEGIN { if($^O eq "MSWin32"){ # Check which OS print("Looks like its $^O\n"); require Win32::Console; import Win32::Console;

Cross platform issues

2005-10-06 Thread John Serink
Hi All: Ok, I need to use either Win32::Console or Term::ANSIScreen depending whether I'm on a Linux platform or Windoze box, so I do this: if($^O eq "MSWin32"){ # Check which OS print("Looks like its $^O\n"); require Win32::Console; } else { require Term::ANSIScreen; } Wor