Problem with lockfile in update_virus_scanners

Peter Bonivart peter at UCGBOOK.COM
Wed Apr 28 18:32:57 IST 2004


Jan-Peter Koopmann wrote:
> Something like this should do the trick.
 >
 > +[ -f $LOCKFILE ] && [ "`find $LOCKFILE -type f -mmin +60 -print`" =
"" ] && exit 0

The option "-mmin" (minutes) is only in GNU find, not in standard find.
Only "-mtime" (days) can be used there.

--
/Peter Bonivart

--Unix lovers do it in the Sun

Sun Fire V210, Solaris 9, Sendmail 8.12.10, MailScanner 4.29.7,
SpamAssassin 2.63 + DCC 1.2.39, ClamAV 0.70 + GMP 4.1.2, Vispan 1.3

-------------------------- 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