Yes I could do it that way. I think I'll still use the 0B file though.

The "unzipper" service will use Win32::ChangeNotify to monitor a directory without having to read it every now and then ... thus the service will take no processor time at all if you do not upload anything. The monitored directory will NOT be the one into which I upload the ZIPs ... it'll be a subdirectory of that one. So the service will stay sleeping while the FTP server creates and fills the ZIP file and be waked up by the 0B file after the ZIP is done.

Actually I might find out I do not need to do that and that I will be able to filter the notifications so that the service will not be notified everytime a next chunk of the file is uploaded, but I doubt it.

Thanks for the suggestion anyway :-)

Update 2003-04-29: Just FYI. In the end I used something similar to the 0B file idea. The file is not actually 0B, it's a little bigger. It contains an MD5 hash of the ZIP and some secret text. The Unzipper then computes such an MD5 hash itself and compares the two to make sure the ZIP was uploaded by the Uploader. We use these two services a lot and are quite happy with the solution.

  Jenda


In reply to Re: Re: Re: Re: Asynchronous FTP by Jenda
in thread Asynchronous FTP by Jenda

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.