Hi,
i need help with sfv checker:
I'd like to use sfv checker to call an external script everytime a file is uploaded to the ftp server. The server only accepts .jpg files. All users are banned to their respective user dirs (DefaultRoot ~). First i tried to use mod_exec, but unfortunately their are some problems with DefaultRoot ~. So it comes to sfv checker.
I just installed sfv checker on my system (Suse 9.0 / ProftpD 1.2.9). Everything seems to work fine. Then i changed the ftpsvcheck.pl script with the following entry:
system("/opt/blabla/thconvert.sh ".$filename);
thconvert.sh is a shell script invoking ImageMagick's 'convert' with a given filename (absolute path to file) and a definite size for resizing the jpeg.
But this doesn't work. Doesn anybody know what's wrong here. ?
Thx for your help.
Sorry for the late reply, I was on vacation
This would be the correct script:
#!/usr/bin/perl
if (@ARGV != 1)
{
print("Usage: ftpsfvcheck.pl filename\n");
exit(-1);
}
system("/opt/blabla/thconvert.sh " . @ARGV[0]);
exit(0);
Hope this helps...