程序运行结束后自动发邮件

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

1
2
3
4
5
6
#!/bin/sh
 
curDate=`date`
# Run your program here
endDate=`date`
echo "Running complete! Started: "$curDate "Ended: "$endDate |mail -s "MSONEW Run Complete!" myname@domain.com