Monitor script

This script is used to monitor ProFTPD log and to react at certain events (deletion of the ftp.settings.LOCK_FILENAME).

It is also used at API level in edeposit.amqp (see process_log()).

ftp.monitor.process_log(file_iterator)[source]

Process the extended ProFTPD log.

Parameters:file_iterator (file) – any file-like iterator for reading the log or stdin (see :funkc:`_read_stdin`).
Yields:ImportRequest – with each import.
ftp.monitor.main(filename)[source]

Open filename and start processing it line by line. If filename is none, process lines from stdin.

Previous topic

Initializer script

Next topic

__init__.py

This Page