Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi All,
I am getting following error while sending mail with mailx through shell script.
*********************
temporary mail file: No such file or directory
*********************
Permission for /tmp given below:
drwxrwxrwt. 18 root root 4096 Feb 11 16:07 tmp
Size for /tmp is: 80K tmp
Waiting for your kind and immediate response.
We volunteer our time here...if you need an 'immediate response', then your best course of action would be to hire someone. Otherwise, asking for/expecting 'immediate' help is fairly rude. Also, you need to read the "Question Guidelines" link in my posting signature, because unless you provide actual DETAILS, there is nothing we can tell you. You don't tell us what version/distro of Linux, post your shell script, or really give us anything to go on.
Also, since you need 'immediate' help, did you try just putting that error into Google, along with the "mailx" term??? Because it pulls up LOTS of information, and tells you exactly why you're getting that message, and how to fix it.
Linux XXXXXXXXX 2.6.32-504.23.4.el6.x86_64 #1 SMP Tue Jun 9 08:39:04 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux
*************************************************************
My Shell script is:
#! /bin/ksh
prog=`echo $0 | sed 's/.*\///g;s/\.sh//g'`.sh # extract script name
prog1=`echo $0 | sed 's/.*\///g;s/\.sh//g'`
HOST=`uname -a | awk '{print $2}'`; export HOST
users_pwd=$dba_config/jobs.ctl
DBAUSER=`grep DBA_$ORACLE_SID= $users_pwd | cut -d= -f2`
###################################################################################
#Get a dump of all the indexes where owner is SCOTT
###################################################################################
#${ORACLE_HOME}/bin/sqlplus /nolog << EOF
#connect $DBAUSER@$ORACLE_SID
${ORACLE_HOME}/bin/sqlplus $DBAUSER@$ORACLE_SID @$dba_sql/check_alert_errors.sql
if [ -s $mon_log/alert_errors.lst ];
then
WarnMes
echo " Following Errors/Warnings found in Alert Log File for $ORACLE_SID: on $HOST on $cur_date" >>$MsgFile
cat $mon_log/alert_errors.lst >>$MsgFile
cat $MsgFile | mailx -s 'Errors/Warnings found in Alert Log for '$ORACLE_SID' on '$HOST' on '$cur_date'' $DBA_LIST
else
WarnMes
echo "No Errors found in Alert log File for instance $ORACLE_SID on $cur_date' >> $MsgFile
fi
Linux XXXXXXXXX 2.6.32-504.23.4.el6.x86_64 #1 SMP Tue Jun 9 08:39:04 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux
No, that's the kernel version. Version/distro of Linux is just that...something like "CentOS 6.5" or "Mint 17". This tells us nothing.
Quote:
*************************************************************
My Shell script is:
...not in CODE tags, and is hard to read without them. And it also doesn't matter, since you haven't apparently tried to look up the error, as it was suggested you do.
AGAIN did you try to look up the error???? You're not setting a TMPDIR variable in your script, and you say that /tmp is 80K?? That's tiny, so redirect it somewhere else.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.