running script after sftp upload

running script after sftp upload

Raz raziebe at gmail.com
Tue Jun 14 20:52:30 IDT 2011


though I am not sure this is what hetz meant , i would have done it as
follows:
if some new file opened in /ftpdir
  then run lsof -p <pidof ftpd> | grep filename
  if true then ftp downloaded it

what say you ?

On Tue, Jun 14, 2011 at 11:13 AM, Elazar Leibovich <elazarl at gmail.com>wrote:

>
>  On Tue, Jun 14, 2011 at 10:49 AM, Raz <raziebe at gmail.com> wrote:
>
>>  so the file has an owner. the script should query the owner id. am i
>> missing something here ?
>>
>
> How would he know if the owner used ftp, or didn't use ftp?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20110614/a74a5ad1/attachment.html>


More information about the Linux-il mailing list