白天和黑夜只交替没交换无法想像对方的世界
分类: linux
2011-06-02 12:00:39
今天在论坛里看到(echo "contents"; uuencode urfile file)|mail -s "subject"
其中,(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