[b]
********************************************************************************************************
MAIL
********************************************************************************************************
[/b]
---------------------------------------------------------------------------------
a) 简单的邮件
运行mail命令,然后mailx会等待你输入邮件内容。你可以按回车来换行。当输入完成后,按Ctrl + D,mailx会显示EOT表示结束。
然后mailx会自动将邮件发送给收件人。
$ mail user@example.com
HI,
Good Morning
How are you
EOT
b) 发送有主题的邮件
$ echo "Email text" | mail -s "Test Subject" user@example.com
-s的用处是指定邮件的主题。
c) 从文件中读取邮件内容并发送
$ mail -s "message send from file" user@example.com < /path/to/file
d) 将从管道获取到的echo命令输出作为邮件内容发送
$ echo "This is message body" | mail -s "This is Subject" user@example.com
e) 发送带附件的邮件
$ echo “Body with attachment "| mail -a foo.tar.gz -s "attached file" user@example.com
-a选项用于指定附件。
-------------------------------------------------------------------------------
Mutt是类Unix系统上的一个文本界面邮件客户端。它有20多年的历史,在Linux历史中也是一个很重要的部分,它是最早支持进程打分和多线程处理的客户端程序之一。按照如下的例子来发送邮件。
a) 带有主题,从文件中读取邮件的正文,并发送
$ mutt -s "Testing from mutt" user@example.com < /tmp/message.txt
b) 通过管道获取echo命令输出作为邮件内容发送
$ echo "This is the body" | mutt -s "Testing mutt" user@example.com
c) 发送带附件的邮件
$ echo "This is the body" | mutt -s "Testing mutt" user@example.com -a /tmp/foo.tar.gz
d) 发送带有多个附件的邮件
$ echo "This is the body" | mutt -s "Testing" user@example.com -a foo.tar.gz –a bar.tar.gz
[b]
********************************************************************************************************
svn
********************************************************************************************************
[/b]
svn:
安装:
[b]
********************************************************************************************************
maven
********************************************************************************************************
[/b]
下载maven包
********************************************************************************************************
********************************************************************************************************
[/b]
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
sudo apt-get install mailutils
#发送文本
echo "mail content" |mail -s "mail ttile" xinchun.wang@qunar.com
#发送附件
mutt -s "title" -a data.txt xinchun.wang@qunar.com
---------------------------------------------------------------------------------
a) 简单的邮件
运行mail命令,然后mailx会等待你输入邮件内容。你可以按回车来换行。当输入完成后,按Ctrl + D,mailx会显示EOT表示结束。
然后mailx会自动将邮件发送给收件人。
$ mail user@example.com
HI,
Good Morning
How are you
EOT
b) 发送有主题的邮件
$ echo "Email text" | mail -s "Test Subject" user@example.com
-s的用处是指定邮件的主题。
c) 从文件中读取邮件内容并发送
$ mail -s "message send from file" user@example.com < /path/to/file
d) 将从管道获取到的echo命令输出作为邮件内容发送
$ echo "This is message body" | mail -s "This is Subject" user@example.com
e) 发送带附件的邮件
$ echo “Body with attachment "| mail -a foo.tar.gz -s "attached file" user@example.com
-a选项用于指定附件。
-------------------------------------------------------------------------------
Mutt是类Unix系统上的一个文本界面邮件客户端。它有20多年的历史,在Linux历史中也是一个很重要的部分,它是最早支持进程打分和多线程处理的客户端程序之一。按照如下的例子来发送邮件。
a) 带有主题,从文件中读取邮件的正文,并发送
$ mutt -s "Testing from mutt" user@example.com < /tmp/message.txt
b) 通过管道获取echo命令输出作为邮件内容发送
$ echo "This is the body" | mutt -s "Testing mutt" user@example.com
c) 发送带附件的邮件
$ echo "This is the body" | mutt -s "Testing mutt" user@example.com -a /tmp/foo.tar.gz
d) 发送带有多个附件的邮件
$ echo "This is the body" | mutt -s "Testing" user@example.com -a foo.tar.gz –a bar.tar.gz
[b]
********************************************************************************************************
svn
********************************************************************************************************
[/b]
svn:
安装:
yum -y install subversion
将文件checkout到本地目录
svn checkout
svn checkout http://svn.corp.qunar.com/svn/OTAwebsite.qunar.com/TTS20110311/tts_inte
r_java/branches/tts_ins_package
将改动的文件提交到版本库
svn commit -m "test" b.txt
删除文件
svn delete http://svn.corp.qunar.com/svn/OTAwebsite.qunar.com/TTS201
10311/tts_inter_java/branches/tts_ins_package/b.txt -m "delete b.txt"
[b]
********************************************************************************************************
maven
********************************************************************************************************
[/b]
下载maven包
wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.2.1/binaries/apache-maven-3.2.1-bin.tar.gz
解压文件
sudo tar -xvf apache-maven-3.2.1-bin.tar.gz
设置环境变量
sudo vim /etc/profile
export MAVEN_HOME=/home/q/maven/apache-maven-3.2.1
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$JAVA_HOME/bin:$MAVEN_HOME/bin
//重新编译
source /etc/profile
//打包
mvn clean package -Dmaven.test.skip=true -Pdev