Re: Aiuto x uno script
mer 24 agosto 2005, alle 15:25 (GMT+0200), max ha scritto:
> 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
mount -t vfat /dev/sda3 /mnt \
|| echo "Orrore!! il mount è fallito!!!" \
| mail -s "abbiamo un problema" max@localhost
(levando i \ anche tutto su una riga)
se vuoi fare un po' di test senza intasarti la mailbox:
ls .bashrc || ls -l .b*
ls .bashrc || ls -l .b* | grep profile
ls bdjjdjdjiee || ls -l .b*
ls bdjjdjdjiee || ls -l .b* | grep profile
--
Ave Johan Haggi
ante diem nonum Kalendas Septembres MMDCCLVIII ab Urbe condita
**NEW** GnuPG key-id: 0x398F1A73 (available on http://keyserver.linux.it)
Fingerprint: 75D4 86D5 B795 BD31 4BD2 2354 9206 CB42 398F 1A73
Reply to: