machine_poweroff.sh: finished script..
This commit is contained in:
parent
c3dd3448b8
commit
2d1798ccd9
@ -353,10 +353,14 @@ if $terminal ; then
|
|||||||
echo ""
|
echo ""
|
||||||
else
|
else
|
||||||
|
|
||||||
echo ""
|
from_address="power-off@$(hostname -f)"
|
||||||
echo -e " Going to power off the system '$(hostname -f)' .."
|
to_address="root"
|
||||||
echo ""
|
content_type='Content-Type: text/plain;\n charset="utf-8"'
|
||||||
sleep 5
|
subject="Power OFF System $(hostname -f).."
|
||||||
|
msg=" Going to power off system '$(hostname -f)' .."
|
||||||
|
|
||||||
|
echo -e "To:${_to_address}\n${content_type}\nSubject:$subject\n\n${msg}\n" \
|
||||||
|
| /usr/sbin/sendmail -F "Webservice Monitor" -f $from_address $_to_address
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user