Re: running script after sftp upload

2011-06-14 Thread Raz
On Mon, Jun 13, 2011 at 6:10 PM, Elazar Leibovich elaz...@gmail.com wrote: 2011/6/13 Raz razi...@gmail.com: set up inotifier on the upload library. How would you know who copied the file to this library? it is not a requirement as i understand.

Re: running script after sftp upload

2011-06-14 Thread Raz
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 elaz...@gmail.comwrote: On Tue,

Re: running script after sftp upload

2011-06-14 Thread Hetz Ben Hamo
What I meant was simple: Lets say you have a sftp-server, which various people upload your files to it. After a file has been upload it, a script would automatically launch to parse the file, change it's permissions, move it etc. At the end the solution was to use incron. Thanks, Hetz

Re: running script after sftp upload

2011-06-14 Thread Ehud Karni
On Mon, 13 Jun 2011 17:38:26 Hetz Ben Hamo wrote: I'm trying to find a solution to this issue: I'm running an sftp-server in ubuntu. Users can login and upload files. What I want to do is to run a script (on the server side) that after user logged in and uploaded a file. sftp-server man

Re: running script after sftp upload

2011-06-14 Thread Hetz Ben Hamo
Thanks for your info, ehud. I found this ( http://www.howtoforge.com/triggering-commands-on-file-or-directory-changes-with-incron) to be much easier to use. Thanks, Hetz 2011/6/14 Ehud Karni e...@unix.mvs.co.il On Mon, 13 Jun 2011 17:38:26 Hetz Ben Hamo wrote: I'm trying to find a

running script after sftp upload

2011-06-13 Thread Hetz Ben Hamo
Hi, I'm trying to find a solution to this issue: I'm running an sftp-server in ubuntu. Users can login and upload files. What I want to do is to run a script (on the server side) that after user logged in and uploaded a file. sftp-server man pages don't give any help about this issue. Any

Re: running script after sftp upload

2011-06-13 Thread Raz
set up inotifier on the upload library. 2011/6/13 Hetz Ben Hamo het...@gmail.com Hi, I'm trying to find a solution to this issue: I'm running an sftp-server in ubuntu. Users can login and upload files. What I want to do is to run a script (on the server side) that after user logged in

Re: running script after sftp upload

2011-06-13 Thread Elazar Leibovich
2011/6/13 Raz razi...@gmail.com: set up inotifier on the upload library. How would you know who copied the file to this library? ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il