ciao a tutti,
quale è la forma più elegante per fare eseguire un comando (mount nel
mio caso) e se fallisce mi avvisi via email? il tutto dentro ad un
script in bash.
mi servirebbe qualche cosa del genere:
if [ ! mount -t vfat /dev/sda3 /mnt ]; then
echo "Orrore!! il mount è fallito!!!" | mail -s "abbiamo un
problema" [EMAIL PROTECTED]
fi
ma non mi funzia
ciao
MaX
______________________________________________
Renovamos el Correo Yahoo!
Nuevos servicios, más seguridad
http://correo.yahoo.es
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]