Archive

Archive for November, 2011

Working with exit codes

November 25th, 2011 No comments

More a note to myself than a blogport… sorry ;)

 

command  arg arg2 bla

EXCODE=$?

[ $EXCODE -eq 0 ] && echo “Funktioniert”
[ $EXCODE -ne 0 ] && echo “Tut nicht”

Categories: Fundsache, Linux / Unix / foo Tags: