[Nut-upsuser] Setup of upssched on opensuse 11
John Darrah
xyllyx at gmail.com
Wed Sep 17 03:46:19 UTC 2008
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 "[1]ups at fit.edu" -s"Tim_ups on Battery"
> [2]tarbeite at fit.edu
> ;;
> 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
More information about the Nut-upsuser
mailing list