PROCESS FILE
Command Format
PROCESS_FILE;file_name;delete
Description
Directs Naemon to process all external commands that are found in the file specified by the <file_name> argument. If the <delete> option is non-zero, the file will be deleted once it has been processes. If the <delete> option is set to zero, the file is left untouched.
Shell Script Usage Example
sh
#!/bin/sh
# This is a shell script showing how to submit the PROCESS_FILE command
# to Naemon. Adjust variables to fit your environment as necessary.
printf "[%%lu] PROCESS_FILE;/tmp/even_mode_commands.txt;1\n" \
`date +%%s` \
> /var/lib/naemon/naemon.cmd