External Command Reference

External Commands Reference - 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:

#!/bin/sh
# This is a sample shell script showing how you can 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