[Dshield] Better Perl script (iptables)

Mike Watson mike at prog99.com
Mon Aug 27 17:03:03 GMT 2001


On Mon, 27 Aug 2001 02:31:27 -0700, you wrote:

>When attempting to run this client I receive the following error:
>
>Can't call method "ctime" on an undefined value at ./dshield_iptables.pl
>line 122.
>
>lines 120-125:
>
>120> $roll_date = 0;
>121> $stat=stat($rolllogfile);
>122> $roll_date=$stat->ctime;
>123> if ($roll_date >= $last_date) {
>124>        parselog ($rolllogfile, $last_date, $tmp);
>125> }
>
>Help...
Check the names of your rolling log files. I'd hazard a guess they
dont match what the perl script expects. /var/log/messages.1 I think.
-- 
Mike in Edinburgh




More information about the list mailing list