1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
diff -u old/changeme new/changeme
--- old/changeme 2003-11-01 11:31:10.000000000 -0500
+++ new/changeme 2003-11-01 11:27:09.000000000 -0500
@@ -13,9 +13,10 @@
#
(
echo "Subject: $MSG"
- echo " "
+ echo "To: $SYSADMIN"
+ echo
echo "$MSG"
echo " "
/usr/sbin/apcaccess status
-) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN
+) | $APCUPSD_MAIL $SYSADMIN
exit 0
diff -u old/commfailure new/commfailure
--- old/commfailure 2003-11-01 11:31:26.000000000 -0500
+++ new/commfailure 2003-11-01 11:27:13.000000000 -0500
@@ -13,9 +13,10 @@
#
(
echo "Subject: $MSG"
- echo " "
+ echo "To: $SYSADMIN"
+ echo
echo "$MSG"
echo " "
/usr/sbin/apcaccess status
-) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN
+) | $APCUPSD_MAIL $SYSADMIN
exit 0
diff -u old/commok new/commok
--- old/commok 2003-11-01 11:31:33.000000000 -0500
+++ new/commok 2003-11-01 11:27:16.000000000 -0500
@@ -13,9 +13,10 @@
#
(
echo "Subject: $MSG"
- echo " "
+ echo "To: $SYSADMIN"
+ echo
echo "$MSG"
echo " "
/usr/sbin/apcaccess status
-) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN
+) | $APCUPSD_MAIL $SYSADMIN
exit 0
diff -u old/mainsback new/mainsback
--- old/mainsback 2003-11-01 11:30:55.000000000 -0500
+++ new/mainsback 2003-11-01 11:27:21.000000000 -0500
@@ -13,9 +13,10 @@
#
(
echo "Subject: $MSG"
- echo " "
+ echo "To: $SYSADMIN"
+ echo
echo "$MSG"
echo " "
/usr/sbin/apcaccess status
-) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN
+) | $APCUPSD_MAIL $SYSADMIN
exit 0
diff -u old/masterconnect new/masterconnect
--- old/masterconnect 2003-11-01 11:31:43.000000000 -0500
+++ new/masterconnect 2003-11-01 11:27:30.000000000 -0500
@@ -13,9 +13,10 @@
#
(
echo "Subject: $MSG"
- echo " "
+ echo "To: $SYSADMIN"
+ echo
echo "$MSG"
echo " "
/usr/sbin/apcaccess status
-) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN
+) | $APCUPSD_MAIL $SYSADMIN
exit 0
diff -u old/mastertimeout new/mastertimeout
--- old/mastertimeout 2003-11-01 11:31:52.000000000 -0500
+++ new/mastertimeout 2003-11-01 11:27:33.000000000 -0500
@@ -13,9 +13,10 @@
#
(
echo "Subject: $MSG"
- echo " "
+ echo "To: $SYSADMIN"
+ echo
echo "$MSG"
echo " "
/usr/sbin/apcaccess status
-) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN
+) | $APCUPSD_MAIL $SYSADMIN
exit 0
diff -u old/onbattery new/onbattery
--- old/onbattery 2003-11-01 11:32:03.000000000 -0500
+++ new/onbattery 2003-11-01 11:27:35.000000000 -0500
@@ -13,9 +13,10 @@
#
(
echo "Subject: $MSG"
- echo " "
+ echo "To: $SYSADMIN"
+ echo
echo "$MSG"
echo " "
/usr/sbin/apcaccess status
-) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN
+) | $APCUPSD_MAIL $SYSADMIN
exit 0
|