ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Евгений <evgent@tula.net>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Остановить/Поднять ppp из crontab
Date: Fri, 02 Sep 2011 07:10:28 +0400
Message-ID: <4E604924.6030507@tula.net> (raw)
In-Reply-To: <CAJG6M_MG2K7zw20oUcYBio2ZBLi29Xu0y7gvd4N2k+WUMTrjdQ@mail.gmail.com>

01.09.2011 23:13, Yury Bushmelev пишет:

> Это оооочень старое и известное поведение. Настолько старое и
> известное, что уже стало фичей крона, по-моему :)
>
> Все дело в том, что при вызове чего-либо из crontab, переменная
> окружения PATH сильно урезана. Я не удивлюсь, если там что-то вроде
> '/bin:/usr/bin' по умолчанию. Можно прописать желаемый PATH прямо в
> crontab, но лучше прописывать полные пути к вызываемым программам,
> дабы при переезде не огрести.
>
> Чтение man 5 crontab приветствуется :)

Ну вот, значит в team откопался бизон, который с этим не сталкивался.
Просто думал, что если задание запускается от рута, то и окружение 
должно быть соответствующее.
Хотя.... если взять su и su-, то тоже наблюдаем аналогичное поведение.


  reply	other threads:[~2011-09-02  3:10 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
2011-09-02  3:10         ` Евгений [this message]
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=4E604924.6030507@tula.net \
    --to=evgent@tula.net \
    --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