Reschedule updatedb.mlocate - Linux

By Lydia
at 2014-10-03T07:42
at 2014-10-03T07:42
Table of Contents
我的系統(Ubuntu 14.04)每天早上六點多都會自動執行updatedb.mlocate
我想把他改到晚上九點多執行
有試著修改/etc/crontab如下,卻沒有預期的效果,重開機也一樣:
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
0 21 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --rep
ort /etc/cron.daily )
22 21 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --rep
ort /etc/cron.weekly )
27 21 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --rep
ort /etc/cron.monthly )
#
不知道我哪裡弄錯了,請指教
--
我想把他改到晚上九點多執行
有試著修改/etc/crontab如下,卻沒有預期的效果,重開機也一樣:
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
0 21 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --rep
ort /etc/cron.daily )
22 21 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --rep
ort /etc/cron.weekly )
27 21 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --rep
ort /etc/cron.monthly )
#
不知道我哪裡弄錯了,請指教
--
Tags:
Linux
All Comments

By Regina
at 2014-10-04T20:12
at 2014-10-04T20:12

By Frederic
at 2014-10-07T20:27
at 2014-10-07T20:27

By Gary
at 2014-10-12T00:00
at 2014-10-12T00:00

By Kelly
at 2014-10-16T03:04
at 2014-10-16T03:04
Related Posts
一張網卡多IP的顯示

By Noah
at 2014-10-03T00:06
at 2014-10-03T00:06
ubuntu 12.04 php5 問題

By Ina
at 2014-10-02T21:11
at 2014-10-02T21:11
postfix about transport設定問題

By Robert
at 2014-10-02T17:04
at 2014-10-02T17:04
RVM is not a function

By Donna
at 2014-10-02T10:50
at 2014-10-02T10:50
被植入後門

By Poppy
at 2014-10-01T11:18
at 2014-10-01T11:18