From: Avramenko Andrew <liksx@mail.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] crontab
Date: Tue, 27 Feb 2007 16:32:08 +0300
Message-ID: <45E432D8.5030600@mail.ru> (raw)
In-Reply-To: <45E431D5.7040607@ieml.ru>
Timur Batyrshin пишет:
> Avramenko Andrew пишет:
>>> Посоветуйте как сделать (и можно ли вообще), чтобы задание в crontab
>>> запускалось в определённый день недели, но раз в месяц, т.е. например,
>>> каждый первый понедельник месяца.
>>> Судя по мануалам, похоже, что никак =(
>>> Не хочется проверку времени внутрь скрипта встраивать, может ещё
>>> какие-то варианты есть?
>> Ну и что тут сложного
>> 15 14 1-7 * 1 $HOME/bin/monthly
>
> Точно будет работать? Проверю, конечно, но меня вот эта часть из мануала
> смущает:
> -----
> Note: The day of a command's execution can be specified by two fields ---
> day of month, and day of week. If both fields are restricted (ie,
> aren't *), the command will be run when either field matches the current
> time. For example, ``30 4 1,15 * 5'' would cause a command to be run at
> 4:30 am on the 1st and 15th of each month, plus every Friday.
> -----
>
> Если я правильно понимаю, то здесь как раз говорится о том, что эта
> конструкция не пройдёт - будет запускаться ежедневно с 1 по 7 число И
> каждый понедельник.
sorry. как-то нелогично они сделали эту часть, не ожидал подвоха :)
next prev parent reply other threads:[~2007-02-27 13:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-27 13:08 Timur Batyrshin
2007-02-27 13:13 ` Avramenko Andrew
2007-02-27 13:27 ` Timur Batyrshin
2007-02-27 13:32 ` Avramenko Andrew [this message]
2007-02-27 13:50 ` Avramenko Andrew
2007-02-27 14:22 ` Timur Batyrshin
2007-02-27 18:32 ` Peter Volkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45E432D8.5030600@mail.ru \
--to=liksx@mail.ru \
--cc=sysadmins@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git