Linux crontab练习之在系统中设定定时任务并优化定时任务_2 要求 每天凌晨4点系统的设备使用信息并以邮件的方式放送到root邮箱中确保此任务为系统定时任务 脚本实现 #!/bin/bashdnf install postfix s-nail-14.9.22-6.el9.x86_64 -y &> /dev/nullsystemctl enable --now postfixecho "* 4 * * * root df -h | mail -s test root" >> /etc/cron.d/testfilechmod +x test2.sh