teammail-sample.sh
来自「ipsec vpn」· Shell 代码 · 共 35 行
SH
35 行
#!/bin/sh#set -xset -e. $HOME/freeswan-regress-env.shrecipients=`echo $NIGHTLY_WATCHERS | sed -e 's/,/ /g'`#recipients='mcr@freeswan.org hugh@freeswan.org'tmpfile=/tmp/msg$$cat - >$tmpfilesed -n -e '1,/^$/p' $tmpfile >$tmpfile.headerssed -n -e '/^$/,$p' $tmpfile >$tmpfile.body# encrypt body#gpg --encrypt --armor -r mcr@freeswan.org --batch --yes $tmpfile.body# reset home just in case.HOME=/freeswan/users/build export HOMEPGPPATH=$HOME/.pgp export PGPPATHpgp -eat $tmpfile.body $recipients ( cat $tmpfile.headers echo cat $tmpfile.body.asc ) | cat | /usr/sbin/sendmail -t rm -f $tmpfile $tmpfile.headers $tmpfile.body $tmpfile.body.asc
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?