What type of Linux/Unix are you running?
If running:
$ locate uuencode
cannot find uuencode (assuming locate is installed) then uuencode is not installed, what Unix you are running and what type of package manager it uses affects what the answer is to question 2?
and not getting an answer means that uuencode is not in your PATH, hence the suggestion to try locate (preceded by updatedb if necessary) if locate is installed on your system?
If locate is not installed or does not report a location for uuencode we need to know what Unix you are running in order to be able to help any further?
I am trying to send the attachments using uuencode command, it works fine in one machine and not working in another machine.
This is line i have executed.
uuencode Results.tar.gz Results.tar.gz | mail -s "Risk Comparison Results" bb@bb.com -c aa@aa.com
It works fine in this machine:
-sh-2.05b$ uname -r
2.4.21-47.0.1.ELsmp
-sh-2.05b$ uname
Linux
-sh-2.05b$ locate uuencode
/usr/share/man/man1/uuencode.1.gz
/usr/share/man/man5/uuencode.5.gz
/usr/bin/uuencode
-sh-2.05b$ uuencode
Try `uuencode --help' for more information.
-sh-2.05b$ which uuencode
/usr/bin/uuencode
-sh-2.05b$
But not working in this machine:
-sh-3.00$ locate uuencode
/var/www/icons/uuencoded.gif
/var/www/icons/uuencoded.png
/usr/share/man/man1p/uuencode.1p.gz
-sh-3.00$ which uuencode
/usr/bin/which: no uuencode in (/usr/kerberos/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/quest/bin:/usr/X11R6/bin:/opt/VRTS/bin)