Ok I did it and know I get another error :-(
here goes the error:
Died at /usr/lib/perl5/site_perl/5.8.8/Mail/Mailer.pm
line 284.
this is the code:
use strict;
use warnings;
use Mail::Mailer;
my @lines = ();
open (INFO, "/var/log/messages") or die "$!";
while (my $line = ) {
if ($line =~ /I
Hi,
I did it and know I get another error:
syntax error at logcheck line 25, near "'PiX Detected
Attack } ' )"
Missing right curly or square bracket at logcheck line
28, at end of line
Execution of logcheck aborted due to compilation
errors.
This is the code:
use strict;
use warnings;
use Mail:
-Hi,
Im trying to run this code: (im getting this error
message):
Can't use string ("From") as a HASH ref while "strict
refs" in use at
/usr/lib/perl5/site_perl/5.8.8/Mail/Mailer.pm line
320.
The code:
use strict;
use warnings;
use Mail::Mailer;
my @lines = ();
open (INFO, "/var/log/messages"
Hi all !!
im really new to perl so please bare with me and
help..
I need a script to read /var/log messages and each
time it sees a line with the word "IDS" it will send
the whole line via mail to the administrator of the
IDS, here is an example of such a line:
Oct 19 15:40:30 172.31.0.254 %PIX-4
HI,
I am trying to write a script which will send the
result of a var to mail web mail.this is what I wrote
:
#!/usr/bin/perl
#use strict;
use warnings;
my $file_listing = `/usr/bin/nmap -p 80 192.168.1.1`;
How can it be done? do I need to configure sendmail on
my linux box. please try to give a
Hi guys !
I have four html pages. within eack one I have a
firewalls logs.I need to write a script that will
search all the ip address after the work "from: and
wrote tham in a file and if the ip is written already
in the report file so dont write in again.
please help me on this or give me some