Problem with lockfile in update_virus_scanners

Julian Field mailscanner at ecs.soton.ac.uk
Wed Apr 28 14:17:37 IST 2004


Your patch will only work on GNU "find" and nothing else, as other "find"
commands can only report in days.
This will do a rather better job:

[ x`perl -e 'print "young" if -f "'$LOCKFILE'" && -M "'$LOCKFILE'"<0.042'`
= "xyoung" ] && exit 0

but note that perl must be on your $PATH, which is true for most people. If
it is not on your $PATH, it will simply behave as if the check is not there
at all, which isn't too dangerous as it only affects a few people anyway.
Even people that use /usr/local/bin/perl and don't have it on their root
$PATH tend to have a symlink from /usr/bin/perl just for their own ease of use.

At 12:33 28/04/2004, you wrote:
>Something like this should do the trick.
>
>Any thoughts?
>
>-------------------------- MailScanner list ----------------------
>To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
>For further info about MailScanner, please see the Most Asked
>Questions at    http://www.mailscanner.biz/maq/     and the archives
>at    http://www.jiscmail.ac.uk/lists/mailscanner.html

--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

-------------------------- MailScanner list ----------------------
To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
For further info about MailScanner, please see the Most Asked
Questions at    http://www.mailscanner.biz/maq/     and the archives
at    http://www.jiscmail.ac.uk/lists/mailscanner.html



More information about the MailScanner mailing list