日志样式

用Linux shell script发送邮件

#!/凯发k8国际手机bin/sh

cd /home/alexander/bin

echo"

do not reply to this email message.

this is a list of the current customer directories installed on our server.

please make sure they are all billed.

" gt; listofwebsites

ls -1 /customers gt;gt; listofwebsites

mail -s"current customer directories on our server" kim@herdomain.com lt; listofwebsites

下面是我用来每天发送此电子邮件的crontab条目,假如你了解crontab格局,你应该可以轻松找出日期和时刻。

30 7 12 * * /home/alexander/bin/mailwebsitestokim

下面是我用来每天发送此电子邮件的crontab条目,假如你了解crontab格局,你应该可以轻松找出日期和时刻。

30 7 12 * * /home/alexander/bin/mailwebsitestokim

30 7 12 * * /home/alexander/bin/mailwebsitestokim

30 7 12 * * /home/alexander/bin/mailwebsitestokim



it人知识库 该篇文章地址:https://m.itpeo.net/389619/4643007.html