Where is the file in the below statement created?
Code:
/usr/bin/mailx -s "METRIX : EXPEDITES : $ORACLE_SID $ (date)Expedites process Failed " $ERROR_MAIL < /tmp/expedites_test.lst >/ dev/null
Thats what is failing with the file permission error. Could you check the file's existence and its permissions??And one more thing, In this code part
Code:
LOG_FILE="$TOP/log/$MODULE_NAME.$(date+%m%d.%H:%M)";export LOG_FILE
you should have a space after the
'date' command. it should be