Being able to send emails from command-line from a server is quite useful when you need to generate emails programatically from shell scripts or web applications for example. This tutorial explains, how to use to the mail command on linux to send mails from the command-line using the mail command.
Active5 years ago
I have a server that I have inherited that has an older version of Redhat installed due to software requirements and now there is a need to use UUENCODE to allow email attachments. The
uuencode
and uudecode
files are not in /usr/bin
. I tried copying them from another server but I receive an error:/lib64/tls/libc.so.6: version `GLIBC_2.4' not found when we try to run it.
It appears that I may need to install the sharutils.rpm but I am not sure which one to download? Can anyone either point me to the correct rpm to download or an alternative method for processing uuencode?
Server Details:
Caleb54k1010 gold badges161161 silver badges200200 bronze badges
user739866user739866
2 Answers
Have you tried using
yum
to access the the RHEL repositories and install the version of sharutils that matches your release?CentOS packages are generally one-to-one equivalents to RHEL packages with branding removed. You could try manually downloading a package from them. It looks like you could get that package here:
Community♦
CalebCaleb54k1010 gold badges161161 silver badges200200 bronze badges
![Red hat enterprise linux 7 server - optional Red hat enterprise linux 7 server - optional](/uploads/1/2/5/8/125844775/690490958.png)
How to get uuencode on Fedora 17 Linux
Find out what provides for uuencode using yum:
Read what yum tells you:
Oh Look! 'sharutils' provides uuencode
Install that:
You get this output:
Then test to see if it works
Eric LeschinskiEric Leschinski1,49211 gold badge1414 silver badges1717 bronze badges