uuencode in Linux
Hello,
I am relatively new to Linux but have a variety of other "UNIX" experience. I am working on an application and need to send an email attachment via mailx. In the past on "UNIX" I used uuencode to accomplish this. uuencode is not installed on any of our boxes and we are currently without a sysadmin. Are their any alternatives for uuencode in standard out-of-the-box Redhat Linux? Thanks in advance for your help. Pat |
Pipe the output through 'openssl base64'?
|
uuencode is included in GNU sharutils. You can look to see if there is a redhat package for it, or you can download the source and compile.
|
uuencode
To: unSpawn - thank you for this. My first attempt yielded the file as the body of the message. I'll continue to work with this and try other approaches.
To: Z038 - I did find that the package exists - unfortunately, we are now "between" sysadmins, so there is nobody to install it! |
On RHEL (Centos etc), its just
Code:
yum install <pkgname> The yum cmd takes care of dependencies automatically & will ask for confirmation (unless the cmd name has been aliased to do otherwise). If you like, pick the least important box and try it. |
Quote:
Code:
TMPFILE=`mktemp -p /tmp att.XXXXXXXXXX` && { |
unSpawn Thanks - was relying on old practice - did need to re-read man mailx
|
chrism01 - thanks - it's fun here recently - no sysadmin but no one in Dev allowed to have root access for any reason
|
In that case, tell the mgr some things will have to wait ... ;)
|
All times are GMT -5. The time now is 08:50 PM. |