Hi All,
I have one difficulty here with my Shell script. I want to send four text files and one csv file as attachment using mail or mailx and uuencode utility on Solaris server.
It is Sun Microsystems SunOS 5.10
Here is my code
( uuencode "file1.txt" "file1.txt" ; "file2.txt" "file2.txt" ; "file3.txt" "file3.txt" ; "file4.txt" "file4.txt" ; "file5.txt" "file5.txt" ) | mailx -s "Subject" someone@abc.com < ~/maiBodytext.txt
Now the problem is, mailx is sending a mail but without any attachment.
I tried lot and googled too. But could not find the solution.
Is it the case that we cannot send attachment from SunOs cause i tried sending single attachment too, it failed.
Please note, both the script and the files are under same location i.e. my home directory.
Also, this script works on other Solaris box which has same version as SunOs 5.10 but it is from Oracle Corp. Does vendor specification matters. As far as i know, Oracle has took over Sun long back, then why there is this difference.
Please help me with this.
Thanks in advance!