From: Владимир <fmfm@symmetron.msk.ru>
To: community@altlinux.ru
Subject: Re: [Comm] cron trables
Date: Thu, 05 Jun 2003 11:36:50 +0400
Message-ID: <3EDEF312.1020801@symmetron.msk.ru> (raw)
In-Reply-To: <E19NodG-0001eT-00.altcommunity-mail-ru@f10.mail.ru>
Fedor Sumkin пишет:
>
>необходимо добавить в крон задание от рута -
>в /etc/crontab прописываю
>20 10 * * * root /bin/shutdown -h now
>далее
>service crond restart
>Но в положеное время задание не выполняется, что не так?
>
>
>
1. Лучше делайте в стиле SystemV (для Linux так привычней)
crontab -u root -e
(открывается в редакторе vi)
имя пользователя указывать не надо -
(стиль SystemV - у каждого пользователя свой файл с заданиями)
Результат посмотрите (только чтение) в /var/spool/cron
Рестарт crond не требуется (если редактируете "штатным" инструментом).
2. Передаваемые команде параметры могут вызвать проблемы.
"Закатывайте" команду с параметрами в shell script и запускайте "одним
словом".
--
Best regards
Vladimir
next prev parent reply other threads:[~2003-06-05 7:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-05 6:53 Fedor Sumkin
2003-06-05 7:31 ` Andrew Borodin
2003-06-05 7:36 ` Владимир [this message]
2003-06-05 11:05 ` Re[2]: " Fedor Sumkin
2003-06-05 15:02 ` Re[3]: " ASA
2003-06-05 21:20 ` Andrey Golovin
2003-06-06 5:12 ` Re[4]: " Fedor Sumkin
2003-06-06 4:10 ` BSW
2003-06-05 7:37 ` Andrey Golovin
2003-06-05 7:57 ` Евгений В. Хорохорин
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=3EDEF312.1020801@symmetron.msk.ru \
--to=fmfm@symmetron.msk.ru \
--cc=community@altlinux.ru \
/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 Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git