Send file in the email attachment using shell script [message #629548] |
Wed, 10 December 2014 10:57 |
|
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,
|
|
|
|