if [ -z "$INPUTLOG" ] || [ -z "$OUTPUTLOG" ] || [ -z "$NOTESBIN" ] || [ -z "$NOTESDATA" ] then echo 'ERROR, not all enviornment variables are set...' echo '$INPUTLOG='$INPUTLOG echo '$OUTPUTLOG='$OUTPUTLOG echo '$NOTESBIN='$NOTESBIN echo '$NOTESDATA='$NOTESDATA exit 1 fi For some reaons the code above is not being liked by bash. I don't see a problem, can someone help me out? What I am trying to do is check for the four enviornment variables and if they are NOT set, I want to exit the script. ANTHOER Q: I would also like to check and make sure that the script is being run as a certain user, like 'fred', how can I check to see if 'fred' is the user that this script is executing as? Sam -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/