Hallo,
in welcher Form ist der Rückgabewert eines Programmes abzufragen?
(sozusagen vergleichbar mit dem DOS Errorlevel)
Beispiel:
ich will ein device mounten und der mount Befehl schlägt fehl.
#!/bin/bash
mount -t smbfs \\machine\share
case $ERROR
…
esac
Gibt so so eine globale Errorvariable, wenn ja, wie heißt die?
Gruss - Axel