Aiuto x uno script
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" max@localhost
fi
ma non mi funzia
ciao
MaX
______________________________________________
Renovamos el Correo Yahoo!
Nuevos servicios, más seguridad
http://correo.yahoo.es
Reply to: