1.系统延时任务
at 23:37 ##设定任务执行时间
at> rm -fr /mnt/* ##任务动作
at> <CTRL +D ##用ctrl+D发起任务(设定任务后需要按ctrl+D来发起延时任务)
at -l ##查看任务列表
at -c 任务号 ##查看任务内容
at -r 任务号 ##取消任务执行
注意∶
1.当任务有输出时,输出会以邮件的型是发送给at任务的发起者
2.系统使用mail功能需要安装软件,安装软件的前提是需要软件仓库
-
dnf install postfix.x86_64 mailx.x86_64 -y
-
systemctl enable --now postfix
-
systemctl status