Home » Infrastructure » Unix » Send file in the email attachment using shell script
Send file in the email attachment using shell script [message #629548] Wed, 10 December 2014 10:57 Go to next message
reddy0422
Messages: 9
Registered: June 2014
Junior Member
Hi Gurus,

I developed a shell script which will send an email to the user but i also need to attach a file in the email as attachment.I tried with the below logic but it's not even sending email when i use it. file.log is the file which is in working directory.
Can anyone please advise on this.

uencode $Working/file.log $Working/file.log > $combfile

if [ $retcode -eq 0 ]; then
echo "completed successfully"| mailx -s "completed successfully" abc@xyz.com < $combfile


Thanks,
Re: Send file in the email attachment using shell script [message #629554 is a reply to message #629548] Wed, 10 December 2014 12:15 Go to previous message
Michel Cadot
Messages: 65255
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

This question bears no real connection with Oracle database.
Please find a more appropriate forum.
The topic is locked. /forum/fa/448/0/
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).

Previous Topic: oraenv script prompts for values when ORAENV_ASK set to no
Next Topic: Telnet 192.168.253.98 5000 gives connection refused
Goto Forum:
  


Current Time: Fri Dec 15 04:08:39 CST 2017

Total time taken to generate the page: 0.01580 seconds