From: Yury Bushmelev <jay4mail@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Остановить/Поднять ppp из crontab
Date: Thu, 1 Sep 2011 23:13:04 +0400
Message-ID: <CAJG6M_MG2K7zw20oUcYBio2ZBLi29Xu0y7gvd4N2k+WUMTrjdQ@mail.gmail.com> (raw)
In-Reply-To: <4E5FC134.8080904@tula.net>
1 сентября 2011 г. 21:30 пользователь Евгений <evgent@tula.net> написал:
> 01.09.2011 21:14, Евгений пишет:
>>
>> 01.09.2011 14:49, Sergey пишет:
>>>
>>> On Thursday, September 01, 2011, Evgeny wrote:
>>>
>>>> route add -net 10.5.0.0 netmask 255.255.248.0 dev ppp1
>>>
>>> А если /sbin/route add .... ? Должно срабатывать...
>>>
>>> Только команда неправильная давно, её надо забывать. правильная
>>> какая-то такая: /sbin/ip route add ...
>>>
>> Т.е. окружение root не подхватывается и банально не находится route?
>> Сейчас проверю...
>
> Сергей, Ваша правда. Проверил. Работает.
> Вот ерундень то. Странный root в crontab....
Это оооочень старое и известное поведение. Настолько старое и
известное, что уже стало фичей крона, по-моему :)
Все дело в том, что при вызове чего-либо из crontab, переменная
окружения PATH сильно урезана. Я не удивлюсь, если там что-то вроде
'/bin:/usr/bin' по умолчанию. Можно прописать желаемый PATH прямо в
crontab, но лучше прописывать полные пути к вызываемым программам,
дабы при переезде не огрести.
Чтение man 5 crontab приветствуется :)
--
Yury Bushmelev
next prev parent reply other threads:[~2011-09-01 19:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-01 4:48 Evgeny
2011-09-01 6:12 ` Andrey Liakhovets
2011-09-01 9:18 ` Evgeny
2011-09-01 10:49 ` Sergey
2011-09-01 17:14 ` Евгений
2011-09-01 17:30 ` Евгений
2011-09-01 19:13 ` Yury Bushmelev [this message]
2011-09-02 3:10 ` Евгений
2011-09-02 1:18 ` Alexei Takaseev
2011-09-02 4:48 ` Roman Savochenko
2011-09-05 15:24 ` Michael A. Kangin
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=CAJG6M_MG2K7zw20oUcYBio2ZBLi29Xu0y7gvd4N2k+WUMTrjdQ@mail.gmail.com \
--to=jay4mail@gmail.com \
--cc=community@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 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