Send file in the email attachment using shell script [message #629548] |
Wed, 10 December 2014 10:57 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](http://www.gravatar.com/avatar/03792cb69986a59dc75136a61015d6cd?s=64&d=mm&r=g) |
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,
|
|
|
|