query about Attachement in mail

Hi All,

I have general query that ...in my script i used uuencode
option like below.

cd /location
(cat test.txt
uuencode test.csv test.csv ) | mail -s "test mail" "mail_id"

but whenever i run the above command its giving error like below

./testscript.sh[45]: uuencode not found:

....can anyone suggest me what could be the issue...here..i tried lot of option but no result..

Thanks in advance
sha

it appears that you are looking to "cat" the files test.txt, uuencode and test.csv.

try this...

cd /location
(cat test.txt; uuencode test.csv test.csv ) | mail -s "test mail" "mail_id"