The other day () I talked about how the XLight FTP server for Windows machines was able to be integrated via Domino's LDAP service for not just login credentials, but for almost complete configuration including individual user home paths, permissions, quotas, speeds, ratios, etc. Here's another very cool feature:
When any file is uploaded, downloaded, or deleted from the FTP server, you can have it run an executable program and pass it parameters that include the file path and name, size, the status of the transfer, and the user credentials for the person doing the transfer.
For example:
c:\cygwin\bin\wget http://127.0.0.1/ftphandler.nsf/processNotify?openagent&username=$username&ftp_path=$ftp_path&filename=$filename&filesize=$filesize&status=$status¬iceType=upload
I installed the "wget" command line util through CYGWIN so it could be used at the command line to easily call a URL -- and had that url hit a logging agent in a database on my server. You could do this with a java class or some other tool. I just like CYGWIN a lot because it gives my command line all the tools I'm using to having in a Linux bash shell. Using wget this way also means I can do the same thing with a linux based FTP/SFTP solution.
This calls an agent which converts the parameters into fields and writes a document. I can then have document triggers do things with that information (e.g. add the file to some process, email notify someone of the change, etc.).
This will really integrate well with my applications.
Comment Entry |
Please wait while your document is saved.