download-event-processor
You can have external programs react to events in near real time. For example,
if you wanted to run a script every time there was a file downloaded, you
would set download-event-processor to the full pathname of the
script. The server will then run that script each time, with various
command line arguments.
Obviously I do not recommend using this facility unless you absolutely
need to, for two important reasons:
-
Spawning and executing programs impacts system performance.
-
The programs are run with root privileges -- unless you are very
experienced with writing secure programs, you could mistakenly leave your
system vulnerable to malicious local users.
A safer way is to use the event-pipe
feature, and have your own Perl script or C program read
input from a named-pipe and process it.
Nevertheless, if you wish to proceed, you can look at the process_ncftpd_event.sh
script which comes with the distribution as an example.
Examples:
download-event-processor=/usr/local/etc/ncftpd/process_ncftpd_event.sh
download-event-processor=# (commented
out)
Recommendation:
download-event-processor=# (commented
out)
See Also: