mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
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
This commit is contained in:
parent
21c0dad0c5
commit
cea7506e69
2 changed files with 6 additions and 3 deletions
|
|
@ -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;;
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
# Assumes:
|
||||
# ssh setup to send to shell.sf.net and $CF without password prompt
|
||||
# autconf and automake installed on shell cf at v 2.57 & 1.72 and in PATH
|
||||
# Install in cron with something like:
|
||||
# 47 * * * * $HOME/bin/mail_error -o $HOME/sfsnapshot.out -m tonvoon@users.sf.net sfsnapshot r1_3_0
|
||||
|
||||
function die { echo $1; exit 1; }
|
||||
|
||||
|
|
@ -53,7 +55,6 @@ function make_dist {
|
|||
}
|
||||
|
||||
# Set working variables
|
||||
PATH=$HOME/local/bin:$PATH
|
||||
PROJECT=nagiosplug
|
||||
IN=${HOME}/tmp_snapshot
|
||||
OUT_SERVER="shell.sf.net"
|
||||
|
|
|
|||
Loading…
Reference in a new issue