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 previous message
reddy0422
Messages: 10
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,
 
Read Message
Read Message
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: Tue Apr 16 02:12:02 CDT 2024