On Tue, Sep 16, 2008 at 03:12:22PM -0400, tarbeite wrote: > Hi all . . <stuff> . . > > case $(1) in > onbattwarn) > WALL "UPS is down fix me please" > echo "TIM_UPS is on Battery for more then 10 seconds" \ > | mailx -r "[EMAIL PROTECTED]" -s"Tim_ups on Battery" > [EMAIL PROTECTED] > ;; > esac
In the above `case $(1) in' should be `case ${1} in' or just `case $1 in', because the shell would elicit an error otherwise. Insert `exec > /tmp/errors.log 2>&1' at the begining of the script to save error messages to the file noted for debugging. -- John _______________________________________________ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser