[ILUG] FTP server with callbacks
Niall O Broin
niall at linux.ie
Wed Jan 2 18:12:27 GMT 2002
I've asked this before quite some time ago and got no real answer but I'll
ask again in case anyone knows of any changes in the last year or so.
I have a situation where people use FTP to upload files to a server and
whenever a file has been uploaded som post processing needs doing to it. The
ideal solution to this would be a FTP server which would run some process
when a file has been uploaded, passing the process the pathname of the
uploaded file and perhaps some other information (owner ? - for my purposes,
the pathname will suffice). Apparently this had been discussed on some
server's dev. list but hadn't been implemented.
For the moment, my solution is a hacked version of wu-ftpd which has had its
logging altered slightly and a process which reads the ftpd log file. The
process blocks waiting for a new entry and of course unblocks whenever a new
file is uploaded and then does whatever processing is necessary. This works
perfectly but it's a little sloppy and besides hardly a day passes without
mention of some new wu-ftpd vulnerability. There's no anonymous access and
there are only a few users but nonetheless I'd like to say goodbye to
wu-ftpd and hopefully replace it by a server which will work as I described
above. Any offers ?
Niall
More information about the ILUG
mailing list