[Thamesvalley-pm] scripting question
gmatt at nerc.ac.uk
Tue Aug 14 05:47:20 PDT 2007
Not sure if this is the right place to ask as most of the traffic on
this list seems to be about meeting, but here goes...
I have a perl script (attached) which runs as a cron job. When I run it
as root from the command line it produces a good report but when it is
run from cron, the bitdefender statistics never get printed. Its as if
the %bitdef and %bitdef_today hashes dont get populated.
As far as I can see, the only difference between the bitdefender
sections and the other hash sections is the regexp used. Can anyone
explain why I get different results when running from cron rather than
from the cli?
typical log lines for all three AV engines:
Aug 14 07:36:43 relay1 MailScanner: SophosSAVI::INFECTED::
W32/Netsky-P W32/Netsky-P:: ./l7E6aQsg007006/old_photos_mailer-daemon.zip
Aug 14 07:36:43 relay1 MailScanner: ClamAVModule::INFECTED::
Aug 14 07:36:47 relay1 MailScanner:
Win32.Netsky.P at mm
Greg Matthews 01491 692445
Head of UNIX/Linux, iTSS Wallingford
This message (and any attachments) is for the recipient only. NERC
is subject to the Freedom of Information Act 2000 and the contents
of this email and any reply you make may be disclosed by NERC unless
it is exempt from release under the Act. Any material supplied to
NERC may be stored in an electronic records management system.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Thamesvalley-pm