Centos下安装 uuencode

Centos下安装 uuencode

今天在论坛里看到(echo "contents"; uuencode urfile file)|mail -s "subject" [email protected]
 

其中,(echo "contents"; uuencode urfile file)的前半句邮件内容,后半句邮件附件,但是,执行uuencode 时,报错,原来没有安装相应的包。google了一下,发现只须如下包即可。命令如下:

# yum install sharutils

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: data.nicehosting.co.kr
* base: data.nicehosting.co.kr
* extras: data.nicehosting.co.kr
* rpmforge: fr2.rpmfind.net
* updates: data.nicehosting.co.kr
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package sharutils.i386 0:4.6.1-2 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
sharutils i386 4.6.1-2 base 201 k

Transaction Summary
====================================================================================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 201 k
Is this ok [y/N]: y

sharutils-4.6.1-2.i386.rpm | 201 kB 00:03
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : sharutils 1/1

Installed:
sharutils.i386 0:4.6.1-2

 

你可能感兴趣的:(centos,安装,邮件,File,contents)