Andrew Pollack's Blog

Technology, Family, Entertainment, Politics, and Random Noise

Even more cool integration with the XLight FTP & SFTP Server to Domino - Upload/Download notificiations to the the Domino server

By Andrew Pollack on 04/24/2009 at 09:05 AM EDT

The other day (Database 'Vision For Hire', View '1. Stories by Date', Document 'Does anyone need an FTP & SFTP server that can use your Domino Directory for authentication & configuration?') 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.


  • car icon

    On Site Training

    We can bring the same kind of top quality training you get at conferences right to your offices. If your team needs training in a single topic, or you want to do a whole series on site, we can put a mini-conference together just for your team. For more information, Contact Me.
  • There are  - loading -  comments....



    Other Recent Stories...

    1. 09/02/2010Linux ext3 file system performance wierdnessI've had trouble off and on with a couple of Domino servers on linux. The server goes pear shaped and when I ssh in and look at the console, Domino is reporting drive errors. If you attempt to do anything on the OS at all, you quickly see that the whole file system has shifted into a "read-only" state. This is a bit like a car with a transmission problem shifting into "limp-home" mode. Needless to say, Domino doesn't like being unable to write to the disk. It has happened to me specifically with the most ...... 
    2. 08/31/2010A few tips for car sales people - if you ever want my business.I've been shopping for cars again. This one is a replacement for the spousemobile, so unlike the one for my daughter, this will be new. Having done a fair bit of shopping, here are some tips for you car sales people out there. #1. Do not bullshit me. I may know more than you think. It's just possible that I know how to build that car you're showing me. One lady insisted that I could ignore the EPA mileage sticker on a new Honda or Nissan (which happened to be what is on her lot) because (and I quote) ...... 
    3. 08/22/2010Creating a form generating tool that lets non-technical publshers create rich web formsI've been working on a tool for a client that wants to be able to create web forms to use on their site without learning any programming at all. At the same time, I don't trust any data from the browser side on a web site. I always assume that the browser side is open to hackers. That means any submitted form data has to be validated before it is accepted. Here's what I did... For publishing, I used the CKEditor, which is the web browser rich editor I've standardized on. For most web publishing uses, I use ...... 
    4. 08/13/2010That didn't take long. Oracle is suing Google over the use of Java. Is IBM next? 
    5. 07/20/2010IBM has invented the time machine - and not in a good way 
    6. 07/18/2010A lot of work, but something I've always wanted to do -- Fixing up a car for one of my kids 
    7. 07/13/2010Old Spice -- Their marketing team fully groks social media.  
    8. 06/22/2010Product Review: Plantronics Savi Office wireless headset 
    9. 06/16/2010Ed Brill has a blog. Peter O'Kelly has blog... 
    10. 06/15/2010How about Traveler for Desktop? 
    Click here for more articles.....


    pen icon Comment Entry
    Subject
    Your Name
    Homepage
    *Your Email
    * Your email address is required, but not displayed.
     
    Your thoughts....
     
    Remember Me  

    Please wait while your document is saved.