[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

[linux-users:96147] Re: cronについて


Etzko Yanaga <minaga _at_ t-kids.co.jp> さんの <BC286DF19D6D2minaga _at_ t-kids.co.jp> から引用

> 先週の木曜日(10/31)にcronを仕掛けました。
> 11/1の午前0時にindex.htmlを入れ替えるというものです。
> そこで、入れ替えるプログラムを書いて/etc/cron.aa/以下にそれを置き、
> 以下のように/etc/crontabをいじりました。
> 
> 0 0 1 11 5 root /etc/cron.aa/20021101.pl
> 
> 1日0時に無事に動いたのはいいのですが、8日の0時にも
> 動いてしまいました。日付と曜日指定をしたのに…と首を傾げてます。

man 5 crontab に書いてあるとおりの動作だと思いますです。(以下抜粋)

Commands are executed by cron(8) when the minute, hour, and month of
year fields match the current time, and when at least one of the two
day fields (day of month, or day of week) match the current time (see
``Note'' below).

-- 
TOYAMA Shin-ichi

この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
References: