0 21 * * * /apps/sendNotificationMail/sendNotification.sh 2>&1 >> /apps/sendNotificationMail/logs/notificationCrontab.log
*/3 * * * * /apps/sendNotificationMail/sendNotification.sh 2>&1 | /bin/mail -s "send notification mail cron job output" "test@mail.com"
*/3 * * * * /apps/sendNotificationMail/sendNotification.sh 2>&1 | /bin/mail -s "send notification mail cron job output" "test@mail.com"
本文介绍了一个使用Cron表达式调度的Shell脚本,该脚本每隔三分钟执行一次,发送邮件通知。邮件内容包括cron任务执行输出,发送至指定邮箱。
166

被折叠的 条评论
为什么被折叠?



