#!/bin/bash
source /etc/profile
curl --connect-timeout 5 -m 20 url
centos: crontab -e
*/5 * * * * /vdc_crontab/heart.sh
- 定时任务造成/var/spool/mail/root新邮件 清空命令
cat /dev/null > /var/spool/mail/root
#!/bin/bash
source /etc/profile
curl --connect-timeout 5 -m 20 url
centos: crontab -e
*/5 * * * * /vdc_crontab/heart.sh
cat /dev/null > /var/spool/mail/root