RE: post script

"Gopinath Rao" <[email protected]> Wed, 20 Apr 2005 09:02:39 -0700
Newsgroups gmane.network.ftp.wuftpd.user
Message-ID <EE335453C5C57840823404C684F9F617038F4840@exmbx01sj.global.cadence.com>
Hi,

Excellent example. I want to move file only if the ftp is successful,
may be check the xferlog file for the status,would o be a good idea.

Thanks
Gopi
  

-----Original Message-----
From: Rainer Hantsch [mailto:[email protected]] 
Sent: Tuesday, April 19, 2005 10:58 PM
To: Gopinath Rao
Subject: Re: post script 

Hi!

You probably want to do what I also had to do some time ago.

My situation was to run an anonymous FTP server which also allows
uploads. I created an incoming directory and gave it only rights for
"wx", so a user can enter it and drom files there, but see nothing.
(This is for a little bit more
safety.)

A little shell script is running in the background and uses 'find' to
detect all files that have not changed for >=5 minutes, which is usually
indicating that upload is finished.
All of these files are renamed (they get a prefix with date&time to keep
their original time when they were uploaded and also make their names
unique hereby) and then transfered (=moved) to the target directory.
In my case the customer wanted to have the files finally on a windoze
machine, so I mounted it and moved the files directly to it.

I also built a similar mechanism for the opposite direction: When the
customer puts a file into the outgoing folder on his windoze machine, it
will be moved to the 'pub' directory of the FTP-Server.


Is this what you want to do?


On Tue, 19 Apr 2005, Gopinath Rao wrote:

| Hi All,
|
| is it possible to run any script after the successful transfer of any 
| ftp session. I need to crypt the file uploaded by a user and move it 
| for public access
|
| Thanks and appreciate any help
| Gopinath
|


mfg

  Ing. Rainer Hantsch

--
.---------------------------------------------------------------------.
|      \\|//              Ing. Rainer HANTSCH  -  Hardware + Software |
|      (o o)        Service - Support - WEB-Design und Programmierung |
|--oOOo-(_)-oOOo------------------------------------------------------|
| Ing. Rainer HANTSCH |  mail: [email protected]                   |
| Khunngasse 21/20    |   www: http://www.hantsch.co.at               |
| A-1030 Vienna       |   tel: +43-1-79885380    fax: +43-1-798853818 |
| ** A u s t r i a ** | handy: +43-664-9194382   UID-Nr: ATU 11134002 |
'---------------------------------------------------------------------'