About SendEmail
SendEmail is a lightweight, command line SMTP email client. If you have the need to send email from a command line, this free program is perfect: simple to use and feature rich. It was designed to be used in bash scripts, batch files, Perl programs and web sites, but is quite adaptable and will likely meet your requirements. SendEmail is written in Perl and is unique in that it requires NO MODULES. It has an intuitive and flexible set of command-line options, making it very easy to learn and use.
[Supported Platforms: Linux, BSD, OS X, Windows 98, Windows NT, Windows 2000, & Windows XP]
Download
在linux下有一个mail命令可以用来收发邮件,但是默认情况下邮件的发送人为当前用户,有时候为了方便的在程序(比如perl脚本)中发送邮件,那么就得指定特定的发送人,这个怎么办呢?在正常的发送命令后面追加" -- -f 发送人邮件 -F 发送人姓名"即可,一个简单的实际例子如下:
- $ mail -s "just a test" 收信人邮箱地址 < 要发送的邮件内容文件 -- -f 发送人邮件地址 -F 发件人姓名
效果是: 信件内容将发送给 收信人邮箱,显示的发送人为 发送人姓名<发送人邮件地址>,显示的内容为 发送的邮件内容...
- /bin/mail -s "Disk Used Information" wsy@114.com.cn < /home/kkg/alarm.log
发送人为:root@localhost.localdomain或者是root@hostname
- $ /bin/mail -s "Disk Used Information" wsy@517sou.net < /home/kkg/alarm.log -- -f wsy@517sou.net -F wsy
发件人:wsy@517sou.net
说明:
-- 后面部分是传给 sendmail 这类 mta 的参数。
To: jconsole不能打开,大概两种可能: 1 没有启用独占模式,如O
两个实例分别放在不同的 datadir 里面,会方便很多
今天遇到了“Cleanup failed to process the following paths:-
谢谢分享.有帮助.
根据inotify + rsync的思路,现在有了个c++版本的同步程序,只需指
真是有耐心呀。我做了个pdf 文件 在上面的网站可以下载