linux : if (&&) and mail 用法
2009-05-22 12:23
363 查看
// with email Body and attachement
(uuencode $OUTFILE attachedfilename ; echo "email body") | mail -s "subject here ..." $EMAILRCP
//email body is null ,no attachment
echo | mail -s "No file extracted for onholding inquirenow forms on $DATE, please check ..." $EMAIL1
//sending multiple attachements
(uuencode $REPORTFILNAME1
$REPORTFILNAME1
;uuencode $REPORTFILNAME2
$REPORTFILNAME2
)
| mail -s "Onholding Inquirenow Form Info" $EMAIL1
//multiple attachments and mail body
(uuencode $PA_LITE_HOUSEKEEP_FILE PA_LITE_HOUSEKEEP_LIST_$today.csv ; uuencode $PA_LITE_HOUSEKEEP_LOG PALiteAHousekeep.log ; echo "Pls see attached files.") | mail -s "PA Lite Housekeep Status Report $today" $EMAIL1
//If &&
if [ -s $REPORTFILNAME1 ] && [ -s $REPORTFILNAME2 ]
if (test -f $REPORTFILNAME1 && test -f $REPORTFILNAME2)
if (!reply && !acquireResult)
(uuencode $OUTFILE attachedfilename ; echo "email body") | mail -s "subject here ..." $EMAILRCP
//email body is null ,no attachment
echo | mail -s "No file extracted for onholding inquirenow forms on $DATE, please check ..." $EMAIL1
//sending multiple attachements
(uuencode $REPORTFILNAME1
$REPORTFILNAME1
;uuencode $REPORTFILNAME2
$REPORTFILNAME2
)
| mail -s "Onholding Inquirenow Form Info" $EMAIL1
//multiple attachments and mail body
(uuencode $PA_LITE_HOUSEKEEP_FILE PA_LITE_HOUSEKEEP_LIST_$today.csv ; uuencode $PA_LITE_HOUSEKEEP_LOG PALiteAHousekeep.log ; echo "Pls see attached files.") | mail -s "PA Lite Housekeep Status Report $today" $EMAIL1
//If &&
if [ -s $REPORTFILNAME1 ] && [ -s $REPORTFILNAME2 ]
if (test -f $REPORTFILNAME1 && test -f $REPORTFILNAME2)
if (!reply && !acquireResult)
相关文章推荐
- linux mount命令的基本用法
- When and Why do we use "#if 0"
- linux命令分割、if语句、mv&cp、rm、export
- Explain: Linux and UNIX TCP Wrappers – Find Out If a Program Is Compiled With TCP Wrappers
- shell中括号的特殊用法 linux if多条件判断
- [转]linux shell if 参数
- AT&T Assembly for Linux and Mac (sys_write)
- Zynq AMP - Running Linux and Bare-Metal System on Both Zynq SoC Processors
- linux mount命令的基本用法
- JavaScript减少IF的方法 - &&(与)和||(或)的特殊用法
- Ruby中,&:(ampersand-colon,"与号-冒号")的用法
- Linux Platform Device and Driver
- Linux mail命令的用法
- sql and&or用法 实现jsp邮箱或者用户名登录
- linux mail命令用法浅析【用最简单的测试一下就可以了如 "mail 真实的邮箱账号"具体操作见下一篇文章】
- setAttribute and getAttribute的用法 以及阻止<a>的href的默认属性
- [转]linux&nbsp;shell&nbsp;if&nbsp;参数
- Linux Platform Device and Driver,platform_add_devices()->platform_driver_register()
- Linux Platform Device and Driver,platform_add_devices()->platform_driver_register()
- 小胖说事31------iOS 真机编译错误"“XXX”的 iPod" and run "XXX" again, or if "XXX" is still running