Re: Detect a file upload, can I?

From: Nico Kadel-Garcia (nkadel@bellatlantic.net)
Date: 10/31/02


From: "Nico Kadel-Garcia" <nkadel@bellatlantic.net>
Date: Thu, 31 Oct 2002 14:21:37 GMT


"Brian" <tobrian@email.com> wrote in message
news:9efa349a.0210302245.1646f98e@posting.google.com...
> Thank you for your response. The client wants to push, not pull,
> so...
>
> What do you mean by "This can be done"? I thought you might meen that
> I can configure SSHD and/or sftp-server to execute an action once a
> file has been uploaded. I looked at the documention on
> http://www.openbsd.org/ for these two programs and found not obvious
> way. Short of modifying the source code, is there a way to do this?

You leave a cron job of some sort scanning the directory regularly. When the
directory changes, the job does the extra notification and any extra actions
action. Would an "every 5-minute" scan be frequent enough for you?

> Is your suggesting rsync so that the client can trigger the action
> after upload using ssh? If so, we don't want them to take that
> responsibility. If not, please tell me how rsync can help me with my
> problem.

No, rsync is to reduce the bandwidth of the file transfer and not trigger
the action if no files have actually changed.



Relevant Pages

  • Re: Client/Service relationships & Flow of Requirements.
    ... the client calls "foo" when it wants "bar" to return a particular value. ... The following is designed to compel Prey objects to do something: ... predator < 100 yards from prey ... It is the expectation of the response that makes the runFrom name immediately suspect in an OO context. ...
    (comp.object)
  • Re: [Full-disclosure] [Professional IT Security Providers -Exposed] PlanNetGroup ( F )
    ... the review a second time and incorporate some of your suggestions. ... to do what the client will pay him for. ... exactly a vulnerability assessment is... ... Your response to question 3: ...
    (Full-Disclosure)
  • Re: Message-based vs. method-based interaction [was: Re: LSP and subtype]
    ... That means the sender implementation does not to know about the response, much less depend in any way on what the responder does, so LSP becomes academic. ... Separation of message and method allows one to design both the client and the service independently. ... Then the entire LSP issue comes down to determining where in the subclassing tree the client should access. ... To do that one needs the OOA/D mindset that clients generate messages, ...
    (comp.object)
  • Re: Debain on the rise ! - However ....
    ... >> Maybe I'll be able to give Debian a try at some point in the future, ... Most threads get response. ... > client shouldn't bitch that they get burned by volume. ... > chance HTML email has content, ...
    (Debian-User)
  • Re: Socket write behaviour is inconsistent?
    ... copy 1 byte to buffer, copy many bytes to buffer, copy one byte to ... Then why did you write "the client throws an error"? ... remote endpoint for your connection. ... When the response is sent using the first chunk of code, ...
    (microsoft.public.dotnet.languages.csharp)