I am running Oracle Linux 7 for the purpose of hosting an Oracle database.
As part of this process I run a script that mails a log file at the end on a daily basis.
Crux of my issue is that my script executes the mailx command as root with no issue. When I run as the normal operation user "oracle", it fails with this error:
temporary mail file: No such file or directory
The failing command is:
cat $ORACLE_BASE/admin/DBSID/dpdump/EXPORT.log | mailx -r "FROMADD@domain.com" -s "subject" -S smtp="10.10.10.10:25" TOADDR@domain.com
I have already verified that the oracle user is in the mail group and have checked that the /TMP directory is of standard permission values. I have also checked the permissions of the spool directory and its subfiles.
mailx
is invoked. If it is non-empty, what is the output ofls -ld $TMPDIR
? – Jim L. May 10 '19 at 20:11