From cea7506e69e5708e0df6d029e07d1626e6539379 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Mon, 24 Mar 2003 02:57:50 +0000 Subject: PATH set in correct place and extra comments git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@457 f882894a-f735-0410-b71e-b25c423dba1c --- tools/mail_error | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools/mail_error') diff --git a/tools/mail_error b/tools/mail_error index 184827e9..71a08be5 100755 --- a/tools/mail_error +++ b/tools/mail_error @@ -1,10 +1,12 @@ #!/bin/bash # mail_error -o file -m email_address command -# Runs command and redirects all output to file -# If command rc != 0, sends file to email_address +# Runs command from cron and redirects all output to file +# If command rc != 0, sends output to email_address function die { echo $1 ; exit 1; } +PATH=$HOME/bin:$HOME/local/bin:$PATH + while getopts "o:m:" c; do case $c in o) output_file=$OPTARG;; -- cgit v1.2.3-74-g34f1