parsing gzipped log files

2005-01-19 Thread Mariano Cunietti
Hi all, can anyone address me to a Perl module/function to parse gzipped log files without uncompressing them via gzip/gunzip? Thanks Mariano -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

file handle warning

2005-01-20 Thread Mariano Cunietti
r string at ./extract_from_mbox.pl line 6. OK If I disable "use warnings;" it's obviously all going smoothly, and I get only "OK". I've googled around for a while but neither newsgroup nor my O'Reilly manual gave any advice. Can you help me? Thanks -

Re: file handle warning

2005-01-20 Thread Mariano Cunietti
got it! perl complains about a file handler opened but never used. If I add: close MAILBOX; at the end of the script, the warning disappears. Sorry, wrote too faster than my brain :-) m. On Thu, 2005-01-20 at 16:29, Mariano Cunietti wrote: > I'm trying to run thi

hashes of arrays?

2005-01-25 Thread Mariano Cunietti
} } = I'm not used to manage perl hashes as I did in multidimensional arrays in PHP. Is it possible to store an array in a hash item? And how shold I do that? Which is the way to recall the value? TIA Mariano -- - Mariano Cunietti System Admi

SOLVED: hashes of arrays?

2005-01-25 Thread Mariano Cunietti
On Tue, 2005-01-25 at 18:55, Ankur Gupta wrote: > > Mariano Cunietti wrote: > > > #foreach $destination (@dest_users) { # NO NEED FOR THIS > > >#print "==>$destination\n"; > > > > > > push( @{$ali

perl and PostgreSQL?

2005-02-01 Thread Mariano Cunietti
Hi, can anybody address me to online resources to learn how to connect to a PostgreSQL DB server through a Perl script? Code examples are welcome ;-) TIA Mariano - Mariano Cunietti System Administrator Enter S.r.l. Via Stefanardo da Vimercate, 28 20128 - Milano

Re: rmdir

2005-02-01 Thread Mariano Cunietti
oesn't work. What's wrong? TIA ----- Mariano Cunietti System Administrator Enter S.r.l. Via Stefanardo da Vimercate, 28 20128 - Milano - Italy Tel. +39 02 25514319 Fax +39 02 25514303 [EMAIL PROTECTED] www.enter.it - www.enterpoint.it - Gruppo Y2K - www.g

assigning values from a regexp

2005-02-01 Thread Mariano Cunietti
On Tue, 2005-02-01 at 16:33, Ing. Branislav Gerzo wrote: > Mariano Cunietti [MC], on Tuesday, February 01, 2005 at 16:19 (+0100) > typed: > > MC> I was wondering if there is anybody who can show me the *correct* way to > MC> use a fast pattern-search-and-assign. > MC&

concurrent access to a file

2005-02-10 Thread Mariano Cunietti
er in read-only mode (tail -f). Maybe tail (or 'cat' as well, it's the same) affects the file inode so that it stops perl from writing? Any help would be appreciated TIA Mariano -- - Mariano Cunietti System Administrator Enter S.r.l. Via Ste

blacklist monitoring with Net::DNS::Resolver

2005-02-14 Thread Mariano Cunietti
=== Questions: 1 - Is there a better module to performs easy DNS queries? 2 - Is there a function to invert items in an array? (IP octects must be inverted before submitting) 3 - Which is the best module to send the report directly from the script? TIA Mariano -- --

perl+php and remote commands

2005-03-23 Thread Mariano Cunietti
quot;ssh [EMAIL PROTECTED] ."? Isn't there a more *elegant* solution? Thanks Mariano -- ----- Mariano Cunietti System Administrator Enter S.r.l. Via Stefanardo da Vimercate, 28 20128 - Milano - Italy Tel. +39 02 25514319 Fax +39 02 25514303 [EMAI