|
NAMEfiledaemon - Invoke another program on files matching a glob pattern SYNOPSIS filedaemon --in INPUT_GLOB [--out OUTPUT_DIR]
--nextdir PROCESSED_INPUT_DIRECTORY
--faildir FAILED_INPUT_DIRECTORY
[--extension OUTPUT_EXTENSION]
[--poll POLLING_DELAY] [--lock]
[--pidfile PID_FILE] [--no-daemon]
[--log LOG_SPECIFIER] [--loglevel LOG_LEVEL]
[--verbose] [--version]
-- PROGRAM [PROGRAM_ARGS]
DESCRIPTIONfiledaemon operates on input files matching a glob(3) pattern. Each matching input file is passed to a child program (specified in the PROGRAM argument) which is expected to read input data from standard input and write the results to standard output. filedaemon's job is simply to handle the mechanics of directory polling, file globbing, and routing of input and output files on behalf of the child program. Use of two dashes (--) after all filedaemon command-line switches allows PROGRAM_ARGS to be interpreted by the PROGRAM rather than filedaemon itself. While they are not strictly required if you do not need to pass arguments to PROGRAM, they should be used for consistency. OPTIONSI/O OptionsThese options control the file locations for input and output files.
Daemon OptionsThese options control what is done with processed input files, file locking, and other options to facilitate operation as a file daemon.
Logging OptionsThese options are used to specify how log messages are routed. filedaemon can log to standard error, regular files, or the UNIX syslog facility.
EXAMPLESThe following will invoke "yaf" on .pcap files in the /in directory, writing results to the /out directory with a .yaf extension. Processed input files will be moved to the /next directory, and failed input files will be moved to the /fail directory. filedaemon -i "/in/*.txt" -o /out -e yaf \
--nextdir /next --faildir /fail -- yaf
The same as the first example, but with all input files deleted after processing: filedaemon -i "/in/*.txt" -o /out -e yaf \
--nextdir delete --faildir delete -- yaf
The same as the first example, but with a polling delay of 10 seconds (instead of the default 30) and an additional --mac parameter passed to yaf: filedaemon -i "/in/*.txt" -o /out -e yaf -p 10 \
--nextdir /next --faildir /fail -- yaf --mac
BUGSKnown issues are listed in the README file in the Airframe source distribution. Note that Airframe should be considered alpha-quality software; not every concievable input and aggregation is exhaustively tested at each release, and specific features may be completely untested. Please be mindful of this before deploying Airframe in production environments. Bug reports and feature requests may be sent via email to <netsa-help@cert.org>. AUTHORSTony Cebzanov and Brian Trammell for the CERT Network Situational Awareness Group, http://www.cert.org/netsa SEE ALSOglob(3), airdaemon(1)
|