bash

Mandar mail cuando el servidor esta offline.luego meterlo en cron.

[]

ping -c 1 aitoribanez.com

[]

code #!/bin/bash SUBJECT="Automated Security Alert" TO="alarms@ariejan.net" MESSAGE="/tmp/message.txt"

echo "Security breached!" >> $MESSAGE echo "Time: `date`" >> $MESSAGE

/usr/bin/mail -s "$SUBJECT" "$TO" code