Of course you can add something like this to the bash shell script to check the ADMB_HOME is defined if [ -z ${ADMB_HOME} ] then echo you need to define the environment string ADMB_HOME fi