Need resolution for the command "UUENCODE"

HI,

I'm getting the following error while using "uuencode"

 
-bash: uuencode: command not found

I assume either the path is missing or it has not installed..

1)Wat is the command to check the path for uuencode if it has been installed..?

2)How to install uuencode if its not there..?

Please help

Regards
Vikram shetty

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?

which uuencode

If it doesnt return anything its not there.

Not entirely, running:

$ which uuencode

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)

-sh-3.00$ uname -r
2.6.9-55.9.ELsmp

-sh-3.00$ uname
Linux

-sh-3.00$ uname -v
#1 SMP Tue Jun 19 07:44:28 EDT 2007
-sh-3.00$

please let me know how to resolve this issue.

Many Thanks ..

Cheers,
Sachine

uuencode is part of the sharutils package. make sure that is installed

Just to make it very obvious it appears that the uuencode command is not installed in the second machine, running:

$ rpm -qa 

or possibly:

$ dpkg -l

Will hopefully list all the packages installed (depending on the flavour of Linux)...

What distribution of linux are you running? On RHEL-based distributions, uuencode is included with the 'shareutils' package:

-sh-3.2$ yum whatprovides */uuencode
Loaded plugins: fastestmirror
epel/filelists_db
updates/filelists_db
sharutils-4.6.1-2.x86_64 : The GNU shar utilities for packaging and unpackaging
                         : shell archives.
Repo        : base
Matched from:
Filename    : /usr/bin/uuencode