summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 75264bc)
raw | patch | inline | side by side (parent: 75264bc)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Mon, 24 Mar 2003 02:44:17 +0000 (02:44 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Mon, 24 Mar 2003 02:44:17 +0000 (02:44 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@456 f882894a-f735-0410-b71e-b25c423dba1c
tools/mail_error | patch | blob | history | |
tools/sfsnapshot | patch | blob | history |
diff --git a/tools/mail_error b/tools/mail_error
index 4349c21d68a648ebd2d487aa216c11543671b481..184827e92e24dba93e3779d83645b48408676ec9 100755 (executable)
--- a/tools/mail_error
+++ b/tools/mail_error
esac
done
shift $(($OPTIND-1))
-echo "output_file=$output_file email=$email"
[[ -z $1 ]] && die "Must specify command"
if ! "$@" > $output_file 2>&1 ; then
- mail -s "mail_error fail: $@" $email < $output_file
+ mail -s "mail_error fail: $1" $email < $output_file
fi
diff --git a/tools/sfsnapshot b/tools/sfsnapshot
index 8e82f298254377ef38d5905de592c109b6fa45dc..665285af29eeced2d7038779ee5a608e7e6805ae 100755 (executable)
--- a/tools/sfsnapshot
+++ b/tools/sfsnapshot
}
# Set working variables
+PATH=$HOME/local/bin:$PATH
PROJECT=nagiosplug
IN=${HOME}/tmp_snapshot
OUT_SERVER="shell.sf.net"