*/15 * * * *- Run the command every 15 minutes. */15 * * * *- 每 15 分钟运行一次命令。 0 4 * * *- Run the command every day at 4:00 AM. 0 4 * * *- 每天凌晨 4:00 运行该命令。 0 4 * * 2-4- Run the command every Tuesday, Wednesday, and Thursday at 4:00 AM. ...
# (put your own initials here)echo the date to the console every# 15minutes between 6pm and 6am0,15,30,4518-06***/bin/echo'date'>/dev/console 保存并退出。注意前面5个域用空格分隔。 在上面的例子中,系统将每隔15分钟向控制台输出一次当前时间。 提交你刚刚创建的crontab文件: $ crontab davecr...
Now this job will run every 15 minutes. We achieve this by pairing the asterisk (*) with the forward-slash “/” modifier. 0 0 * * 1-5 [COMMAND] With this cron job, we are making use of the range symbol (-) so that we only run the cron on weekdays. This job will fire at ...
# (put your own initials here)echo the date to the console every# 15minutes between 6pm and 6am0,15,30,4518-06***/bin/echo'date'>/dev/console 保存并退出。确信前面5个域用空格分隔。 在上面的例子中,系统将每隔1 5分钟向控制台输出一次当前时间。如果系统崩溃或挂起,从最后所显示的时间就可以...
#(put your own initials here)echothedateto the console every#15minutes between 6pm and 6am0,15,30,45 18-06 * * * /bin/echo ‘date’ > /dev/console 1 2 3 4 5 保存并退出。确信前面5个域用空格分隔。 在 上面的例子中,系统将每隔1 5分钟向控制台输出一次当前时间。如果系统崩溃或挂起,从...
# run custom script the first day of every month at 4:10AM 10 4 1 * * /root/scripts/backup.sh 1. 2. 3. 4. 5. 例 37-1. crontab 的例子 根用户以外的用户可以使用 crontab 工具来配置 cron 任务。所有用户定义的 crontab 都被保存在 /var/spool/cron 目录中,并使用创建它们的用户...
# (put your own initials here)echo the date to the console every # 15minutes between 6pm and 6am 0,15,30,45 18-06 * * * /bin/echo ‘date’ > /dev/console 保存并退出。确信前面5个域用空格分隔。 在 上面的例子中,系统将每隔1 5分钟向控制台输出一次当前时间。如果系统崩溃或挂起,从最后...
# (put your own initials here)echo the date to the console every# 15minutes between 6pm and 6am0,15,30,45 18-06 * * * /bin/echo ‘date’ > /dev/console 系统将每隔15分钟向控制台输出一次当前时间。如果系统崩溃或挂起,从最后所显示的时间就可以一眼看出系统是什么时间停止工作的。在有些 系...
Every cron job uses five fields. Here is an explanation of what each field does in this cron, which runs “every 2 minutes“: Field 1: (*/2) indicates that the task will be run every 2minutes. Field 2: (*) indicates that the task will be run everyhour. ...
# (put your own initials here)echo the date to the console every # 15minutes between 6pm and 6am 0,15,30,45 18-06 * * * /bin/echo 'date' > /dev/console 保存并退出。注意前面5个域用空格分隔。 在上面的例子中,系统将每隔1 5分钟向控制台输出一次当前时间。如果系统崩溃或挂起,从最后所...