linux之crontab

linux之crontab

ps -ef| grep cron

yum install crontab -y

-e 设定日程表 * * * * * 分钟 小时 天 月份 周
/ 每隔几小时
,几点到几点

-r 删除日程表
-l 列出当前日程表

创建一个脚本
#!/bin/bash

cat hello.txt >> /home/wz/test/test,txt
* * * * * /home/test.sh

posted @ 2022-09-11 14:17  嘟嘟小东  阅读(24)  评论(0)    收藏  举报