cisco log parsing

2002-05-29 Thread Hernan Marcelo Salvarezza
Hello people i been working on this script provided by drieux but i still have some doubts about it. http://www.wetware.com/drieux/pbl/Sys/Admin/CiscoParser1.txt the scripts works fine with a small log but when i try to run it in the long log file it displays all the log file just as if it is

Re: why do I get the following warning for taint

2002-05-29 Thread Ovid
--- Rob Roudebush <[EMAIL PROTECTED]> wrote: > > When I run perl -c myscript.cgi to test the syntax or perl -w ..., it produces >this: Too late > for "-T" option at maintenance.cgi line 1 (my line 1 is just the shebang line with >the -T > option). Does this mean that something is wrong? > -Rob

Re: why do I get the following warning for taint

2002-05-29 Thread Kevin Meltzer
You need to have -T on the command line as well: perl -cT script To find out why, 'perldoc perlsec' Cheers, Kevin On Wed, May 29, 2002 at 10:51:45AM -0700, Rob Roudebush ([EMAIL PROTECTED]) said something similar to: > > When I run perl -c myscript.cgi to test the syntax or perl -w ..., it

why do I get the following warning for taint

2002-05-29 Thread Rob Roudebush
When I run perl -c myscript.cgi to test the syntax or perl -w ..., it produces this: Too late for "-T" option at maintenance.cgi line 1 (my line 1 is just the shebang line with the -T option). Does this mean that something is wrong? -Rob Carl Franks <[EMAIL PROTECTED]> wrote: Hi, This is how

Re: Verifying the CONTENT_LENGTH

2002-05-29 Thread Ovid
--- Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Note: I've tried using the functions for uploading from CGI module, but with > no good results in Windows 2000, and that's why I want to write my code. Teddy, Can you be more specific about the "no good results"? If there is a problem with CGI.

RE: Counter and scoping(?) issue

2002-05-29 Thread Camilo Gonzalez
Gack, you Perl Lords once again save my butt. Thanks Roberto, it worked like a charm. -Original Message- From: Kevin Meltzer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 7:30 AM To: Roberto Ruiz Cc: Camilo Gonzalez; [EMAIL PROTECTED] Subject: Re: Counter and scoping(?) issue

Re: Counter and scoping(?) issue

2002-05-29 Thread Kevin Meltzer
On Wed, May 29, 2002 at 03:05:36AM -0500, Roberto Ruiz ([EMAIL PROTECTED]) said something similar to: > Hi, God bless you. > > On Tue, May 28, 2002 at 12:45:53PM -0500, Camilo Gonzalez wrote: > > if ( $confirm_counter = "1"){ > ^ May be this your problem? > > In the

Re: Counter and scoping(?) issue

2002-05-29 Thread Janek Schleicher
Camilo Gonzalez wrote at Tue, 28 May 2002 19:45:53 +0200: > Gurus, > > I've been having this problem in various permutations throughout my Perl life. For >this particular > function, I set $confirm_counter to 1. Then I use a foreach loop to send email to >multiple > recipients. Within the for

Re: Counter and scoping(?) issue

2002-05-29 Thread Roberto Ruiz
Hi, God bless you. On Tue, May 28, 2002 at 12:45:53PM -0500, Camilo Gonzalez wrote: > > I've been having this problem in various permutations throughout my Perl > life. For this particular function, I set $confirm_counter to 1. Then I use > $xheader = "X-HTTP-Client: [$1]\n" >

Re: Using strict and configuration files

2002-05-29 Thread Carl Franks
Hi, This is how I do it. #!/usr/bin/perl -wT use strict; my $conf; unless ($conf = do ('/path/to/config.pl')) { die ("Could not open file"); } print $conf->{'var1'}, "\n"; - Then in a file called "config.pl" { var1 => "one", var2 => "two" } - The "unless" part is just to che