Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

mailx help - No Such file or directory.

H.OJun 21 2011 — edited Jun 22 2011
HELLO ALL,
   I AM TRYING TO RUN THE BELOW SCRIPT FOR EMAILING AN ATTACHMENT. HOWEVER, I RECEIVE THE EMAIL WITHOUT ATTACHMENT.
Error:
/u04/oracle/devappl/xxwc/11.5.0/bin/excel_tut.pdf
: No such file or directory

_*MY CODE*_  
$5 - Email id
$6 - Subject
#===========================================
#!/usr/bin/sh
echo "Email Test Started"
attfile=/u04/oracle/devappl/xxwc/11.5.0/bin/excel_tut.pdf
attfname=excel_tut.pdf
MESSAGE="Hi,
Please find attached the requested attachment.
Thanks."
(echo "$MESSAGE";uuencode ${attfile} ${attfname})|mailx -s "$6" $5
exit 0
#===========================================
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 20 2011
Added on Jun 21 2011
8 comments
1,444 views