in reply to system and -e question
Tip #7 from the Basic debugging checklist: check for system errors with $?