Re: running script after sftp upload

2011-06-14 Thread Hetz Ben Hamo
d 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'

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 a

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 2

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 | grep filename if true then ftp downloaded it what say you ? On Tue, Jun 14, 2011 at 11:13 AM, Elazar Leibovich wrote: > > On Tue, Jun 14, 2011 at 10:49 AM,

Re: running script after sftp upload

2011-06-14 Thread Raz
On Mon, Jun 13, 2011 at 6:10 PM, Elazar Leibovich wrote: > 2011/6/13 Raz : > > 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. ___ Linux-il mailing list Linu

Re: running script after sftp upload

2011-06-13 Thread Elazar Leibovich
2011/6/13 Raz : > 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

Re: running script after sftp upload

2011-06-13 Thread Raz
set up inotifier on the upload library. 2011/6/13 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) tha

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 t

sftp

2002-02-01 Thread Behdad Esfahbod
Try ssh client from http://www.ssh.com/ Has a nice sftp client, and free license for educational, charity and personal recreational/hobby use. -- Behdad Esfahbod 12 Bahman 1380, 2002 Feb 1 [Finger for Geek Code] John Coffey...you have been condemned to