heritrix 用CRONTAB定时执行

Heritrix is relatively easy to automate at the command line using the cron program normally found on Unix and Linux systems. The program crontab can be used to create a schedule for “cron jobs,” which are scheduled executions of one or more commands. The command to create or edit a cron job is crontab –e. This command will open the user’s default editor in order to create the schedule for the cron job. The syntax for the crontab file is as follows:
min hour dayofmonth month dayofweek(0-6) command
An asterisk is used when the value is not needed. Multiple days or months can be separated by a hypen if they are sequential (for example, 1-7 for the 1st through the 7th of a month) or a comma if they are not in order (for example, 1,3,5 for the 1st, the 3rd, and the 5th). A crontab file to have Heritrix on fiat.ischool.utexas.edu run January 1, June 1, and September 1 would read:

0 0 1 1,6,9 * /path/to/bin/heritrix --nowui ORDER_FILE

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值