ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexei Takaseev <alexei@taf.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Остановить/Поднять ppp из crontab
Date: Fri, 02 Sep 2011 01:18:38 -0000 (GMT)
Message-ID: <de15322b-649c-4851-b779-b63f87007e30@taf.localdomain> (raw)
In-Reply-To: <4E5FC134.8080904@tula.net>



----- Исходное сообщение -----
> От: "Евгений" <evgent@tula.net>
> Кому: "ALT Linux Community general discussions" <community@lists.altlinux.org>
> Отправленные: Пятница, 2 Сентябрь 2011 г 2:30:28
> Тема: Re: [Comm] Остановить/Поднять ppp из crontab
> 
> 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....

Сколько себя в линхе помню, оно всегда так было, что скрипты в кроне запускаются в урезаном по самое небалуйся окружении.

Системные переменные окружения можно назначить в том же файле расписаний:

#autogenerated by alterator-ca                                                                                                   
SHELL=/bin/sh                                                                                                                    
PATH=/sbin:/usr/sbin:/bin:/usr/bin                                                                                               
CA_VERBOSE=1                                                                                                                     
                                                                                                                                 
00 2 * * * root ca-sko update

  parent reply	other threads:[~2011-09-02  1:18 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         ` Евгений
2011-09-02  1:18       ` Alexei Takaseev [this message]
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=de15322b-649c-4851-b779-b63f87007e30@taf.localdomain \
    --to=alexei@taf.ru \
    --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