配置计划任务,以用户harry的身份每天14:23分执行一次命令 echo hello。
具体命令如下
[root@bianchengshe ~]# crontab -u harry -e #指定harry,为其创建计划任务
no crontab for harry - using an empty one
crontab: installing new crontab
[root@bianchengshe ~]# crontab -u harry -l #查看计划任务
23 14 * * * echo hallo
* * * * * echo hallo
分 时 日 月 周 执行的任务
![图片[1]-如何配置cron计划任务-编程社](https://cos.bianchengshe.com/wp-content/uploads/2023/09/u3413649052596848249fm253fmtautoapp138fPNG.webp?imageMogr2/format/webp/interlace/1/quality/100)
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容