diff options
Diffstat (limited to 'notifynewip.sh')
| -rwxr-xr-x | notifynewip.sh | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/notifynewip.sh b/notifynewip.sh index bc4ca60..9c08a40 100755 --- a/notifynewip.sh +++ b/notifynewip.sh @@ -10,22 +10,16 @@ cat <<- EOF > emailbody.txt Notification of changed IP address ================================== - The IP address of cumquat has changed. - Old IP and date of recording: -EOF - -cat data/tmp.* >> emailbody.txt + $(cat data/tmp.*) -cat <<- EOF >> emailbody.txt New IP: $ip Date : $dt - + users : $(w) EOF -uptime >> emailbody.txt -cat emailbody.txt | mail -A cumquat -s "IP has changed" $EMAILST33V +cat emailbody.txt | mail -A cumquat -s "Cumquat: IP has changed" $EMAILST33V rm emailbody.txt |
