From: Andre on
Hi all,
I'm looking for a ftp server with macros support.
i.e. when a remote user have uploaded one or more files our ftp server, the
server runs an action as send email to a determinated recipient.

Thank You
Andrea

From: marrgol on
On 2010-05-04 00:31, Andre wrote:
> I'm looking for a ftp server with macros support.
> i.e. when a remote user have uploaded one or more files our ftp server, the
> server runs an action as send email to a determinated recipient.

I'd use my favorite ftp server's logging facilities together with
a log watcher (e.g. swatch)...


--
mrg

From: Greg Russell on
In news:4bdf7ccd$0$2587$65785112(a)news.neostrada.pl,
marrgol <marspamrgol(a)gspammail.com> quoted and typed:

>> I'm looking for a ftp server with macros support.
>> i.e. when a remote user have uploaded one or more files our ftp
>> server, the server runs an action as send email to a determinated
>> recipient.
>
> I'd use my favorite ftp server's logging facilities together with
> a log watcher (e.g. swatch)...

I'd use a cron shell script to examine the ftpd log file and take the
desired action.


From: J G Miller on
On Tue, 04 May 2010 00:31:42 +0200, Andre asked:

> I'm looking for a ftp server with macros support. i.e. when a remote
> user have uploaded one or more files our ftp server, the server runs an
> action as send email to a determinated recipient.

The most configurable FTP server is probably proFTP.

You may be able to put something together using the mod_rewrite

<http://www.proftpd.org/docs/howto/Rewrite.html>

capability of proFTP plus another custom daemon process which
monitors a directory of files or custom log file.

It also has an SQL module, so you may be able to do something
via a process monitoring an SQL database.

Or perhaps you could embark on writing a module for proFTP
which does exactly what it is you want to do?
From: marrgol on
On 2010-05-04 05:03, Greg Russell wrote:
>>> I'm looking for a ftp server with macros support.
>>
>> I'd use my favorite ftp server's logging facilities together with
>> a log watcher (e.g. swatch)...
>
> I'd use a cron shell script to examine the ftpd log file and take the
> desired action.

Isn't that a log watcher? :-) The advantage of a standalone log
watcher is _constant_ monitoring the data being appended to the
given log file (think of tail -f) and taking action immediately.
A cron script would run at regular intervals (which may introduce
undesired delays) and probably would have to analyze the whole
log file every time. And another advantage of log watchers
is that they are already there, ready to be used... :-)


--
mrg