[Ubuntu-zh] =?GB2312?B?Q3JvbnRhYoaW7n0=?=

Xin ZHOU Xin.Zhou在sim.hcuge.ch
星期六 一月 26 14:38:54 GMT 2008


Yixuan Huang a ¨¦crit :
> ¿´¿´ÄãµÄcron½Å±¾£¬ÊDz»ÊǶàдÁ˸ö root
‘ªÔ“²»ÊÇ

crontab script ÈçÏÂ:

==============================================================
xmzh在arcgift:~$ cat /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
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.monthly )
#
========================================================================
ûÓжàʲô¶«Î÷°¡

¶øÇÒ/etc/cron.hourlyĿ¼Àïʲô¶¼Ã»ÓÐ
>
> 2008/1/25 Xin ZHOU <Xin.Zhou在sim.hcuge.ch <mailto:Xin.Zhou在sim.hcuge.ch>>:
>
>     żװubuntuºóÓиöÆæ¹ÖµÄÎÊÌ⣬ ¾ÍÊdz£³£ÊÕµ½mail,
>     ÈçÏ :
>
>     [suject] Cron <root在arcgift> root cd / && run-parts --report
>     /etc/cron.hourly
>
>     /bin/sh: root: not found
>
>     ÇëÎÊÕâÊÇʲôÎÊÌâ°¢ ?? лл
>     --
>     ubuntu-zh mailing list
>     ubuntu-zh在lists.ubuntu.com <mailto:ubuntu-zh在lists.ubuntu.com>
>     https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
>




More information about the ubuntu-zh mailing list