[Nagiosplug-checkins] CVS: nagiosplug/tools mail_error,1.2,1.3 sfsnapshot,1.8,1.9
Ton Voon
tonvoon at users.sourceforge.net
Sun Mar 23 18:58:23 CET 2003
Update of /cvsroot/nagiosplug/nagiosplug/tools
In directory sc8-pr-cvs1:/tmp/cvs-serv22628
Modified Files:
mail_error sfsnapshot
Log Message:
PATH set in correct place and extra comments
Index: mail_error
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/tools/mail_error,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** mail_error 24 Mar 2003 02:44:17 -0000 1.2
--- mail_error 24 Mar 2003 02:57:50 -0000 1.3
***************
*** 1,8 ****
#!/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
function die { echo $1 ; exit 1; }
while getopts "o:m:" c; do
--- 1,10 ----
#!/bin/bash
# mail_error -o file -m email_address command
! # 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
Index: sfsnapshot
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/tools/sfsnapshot,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** sfsnapshot 24 Mar 2003 02:44:17 -0000 1.8
--- sfsnapshot 24 Mar 2003 02:57:50 -0000 1.9
***************
*** 8,11 ****
--- 8,13 ----
# 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 at users.sf.net sfsnapshot r1_3_0
function die { echo $1; exit 1; }
***************
*** 54,58 ****
# Set working variables
- PATH=$HOME/local/bin:$PATH
PROJECT=nagiosplug
IN=${HOME}/tmp_snapshot
--- 56,59 ----
More information about the Commits
mailing list