irgendwie bin ich zu ... und brauch mal eure hilfe.
hab Adamantix v1.0 ehemals trusteddebian am start mit proftpd.
ich will den sfv-checker automatisch ausführen lassen wenn jemand in UPLOAD lädt.
ok, hab cksfv (woody) sowie ProFTPD Version 1.2.5rc1 (woody) installiert. dazu hab ich dann die aktuelle version ftpsfv-0.0.4.tar.gz
ein
- make
- make install
gemacht.
meine /usr/local/ftpsfv/etc/ftpexecd.conf sieht wie folgt aus:
# ftpexecd configuration
#
# remarks begin with a #
#
# all file references have to be ABSOLUTE paths
fifoFile = /var/log/proftpd/sfv_fifo
# points to the named pipe/fifo of the xferlog
logFile = /var/log/proftpd/sfv-logger
# point to a file where to log all inputlines from fifo
# if value == "none", no logging is executed
exec = /usr/local/ftpsfv/bin/ftpsfvcheck.pl
# point to a program/script which is run after each file upload
# it's called with one argument: filename
~
meine ftpsfvcheck.pl hab den eintrag my $sitename="SFV-CHECKER"; gesetzt.
#!/usr/bin/perl
use File::Basename;
# --------- Config -----------------------------
my $ftpsfv = "/usr/local/ftpsfv/bin/ftpsfv"; # path to ftpsfvsfv
my $sitename = "SFV-CHECKER"; # site-name
# --------- Program -----------------------------
if (@ARGV != 1)
{
print("Usage: ftpsfvcheck.pl filename\n");
exit(-1);
}
$path = dirname(@ARGV[0]);
chdir($path);
system($ftpsfv . " -s ". $sitename . " *.sfv" );
exit(0);
~
meine einträge in der proftpd.conf sehen wie folgt aus:
ServerType standalone
LogFormat fifo "%h %I %u %t\"%r\" %s %b"
ExtendedLog /var/log/proftpd/sfv_fifo ALL fifo
TransferLog /var/log/proftpd/xferlog
mein logverzeichnis hat folgende files:
-rw-r--r-- 1 root root 0 Aug 30 22:11 proftpd
-rw-r--r-- 1 root root 0 Aug 30 22:11 sfv-logger
prw-r--r-- 1 root root 0 Aug 30 21:57 sfv_fifo
-rw-r--r-- 1 root root 0 Aug 30 22:11 xferlog
-rw-r--r-- 1 root root 0 Aug 30 19:35 zugriffe.alle
und wenn beides gestartet ist:
1065 pts/0 S 0:00 /usr/local/ftpsfv/sbin/ftpexecd
1069 ? S 0:00 proftpd (accepting connections)
hm, vielleicht (sehr wahrscheinlich) hab ich wieder einen denkfehler.
hoffe das ich nicht wegen spam gekickt werde

würd mich freuen, wenn ich mit euch das prob lösen könnte.
thanx
jürgen