Paolo Sala scrisse in data 12/02/2010 12:20:
> Perché dici? Può montare un cassettino vuoto o un dvd vergine? No e
> quindi restituisce in $? un valore divrso da 0; se invece riesce a
> amontarlo restituisce in $? 0... AFAIK
>
> Provare per credere
>   
Qualcosa tipo
> mount /dev/hdc /media/cdrom
> if [ ! "$?" = "0" ]; then
>     echo Errore: non sono riuscito a montare /dev/hdc: esco
>     exit 1
> fi
...forse è più chiaro?

Piviul


-- 
Per REVOCARE l'iscrizione alla lista, inviare un email a 
[email protected] con oggetto "unsubscribe". Per
problemi inviare un email in INGLESE a [email protected]

To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Rispondere a