Hallo,
ich habe mir grade den Port amavis-stats einstalliert. An sich ist das
nur ein Perl Script, und es haut mir mit folgendem Fehler ab:
([rabauke(at)crivens] </usr/ports/security/amavis-stats>)$
/usr/local/sbin/amavis-stats /var/log/maillog
syntax error at /usr/local/sbin/amavis-stats line 215, near "err"
syntax error at /usr/local/sbin/amavis-stats line 223, near "}"
Execution of /usr/local/sbin/amavis-stats aborted due to compilation errors.
Leider kann ich nicht so gut perl :-/
Der fragliche Part aus amavis-stats wäre:
212 sub semlock {
213 open (LOCKF, ">$lockfile") or do_exit(1, "Could not open
$lockfile: $!");
214 unless (flock(LOCKF, LOCK_EX | LOCK_NB)) {
215 err("warning: Could not lock $lockfile: $!");
216 sleep 2;
217 unless (flock(LOCKF, LOCK_EX | LOCK_NB)) {
218 do_exit(1, "Could not lock $lockfile: $!");
219 }
220 }
221 print LOCKF "$$\n";
222 dbg("Have lock on $lockfile");
223 }
Ich kann leider nicht erkennen was dort falsch ist...
Hat jemand eine Idee?
Den File selbst könnt ihr dort finden und einsehen:
http://crivens.unixoid.de/~rabauke/freebsd/amavis-stats
Für tips wäre ich dankbar.
Beste Grüße,
Marian
sinnloses PS.: unter nem Debian Sarge in gleicher Version funktioniert
dieses Perl Script...
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 04 Jan 2006 - 17:01:46 CET