ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Dmytro O. Redchuk" <dor@ldc.net>
To: community@altlinux.ru
Subject: Re: [Comm] Дозвон по cron и исполнение скрипта.
Date: Thu, 17 Feb 2005 18:44:19 +0200
Message-ID: <20050217164419.GA5278@ldc.net> (raw)
In-Reply-To: <20050217183559.29c596f7@localhost.localdomain>

On Thu, Feb 17, 2005 at 06:35:59PM +0200, Dolgov OV wrote:
> On Thu, 17 Feb 2005 17:09:12 +0200  Dmytro O. Redchuk wrote:
> > > Блин, в долбаном Kppp в настройках именно учетной записи (!), а не
> > > глобально, есть аж четыре поля зля запуска посторонних программ (до,
> > > после соединения, до и после разъединения), а в случае с pppd никак
> > > просветления не наступит.
> > > 
> > > Неужели нет никакой опции типа exec_после_connect?
> > Гянул man pppd.
> > 
> > Увидел там LINKNAME -- думаю, что есть такая переменная для скрипта
> > ip-up. Думаю, что в "ночном" конфиге можно написать linkname VERYLATE
> > или где-то рядом.
> 
> Чего-то я не понял. Опция linkname NAME создает файл ppp-NAME.pid 
> Где она дальше используется - не догнал :-(

Думаю, что есть скрипт /etc/ppp/ip-up, который запускается автоматом
всякий раз при подъятии линка. Думаю, что прописав linkname LATENIGHT в
"ночном" конфиге, в скрипте можно будет делать вещи вроде
if [ "$LINKNAME" = "LATENIGHT" ]; then
	# можно wgetить!!!
fi
с вытекающими последствиями.

НЕ ПРОВЕРЯЛ. В маны не вчитывался. Только глянул, увидев такие проблемы.

> 
> Или надо создать ip-up.NAME в котором и будет команда на запуск wget?
> Было бы просто отлично, если это так.
> 
> 
> Потому как во всех этих ifup, ip-up и ifcfg я уже заблудился.
> 
> Звоню то я напрямую запуская pppd, а модем под него готовит chat-скрипт,
> поэтому команда типа ifup ppp0 (которой тоже в свое время дозванивался,
> но там все шло через wvdial) мне сейчас не подходит.
> 
> -- 
> С наилучшими,
> Олег Долгов
> <dov AT media-link DOT info>
> Registered Linux user #315454

> _______________________________________________
> Community mailing list
> Community@altlinux.ru
> https://lists.altlinux.ru/mailman/listinfo/community


-- 
  _,-=._              /|_/|
  `-.}   `=._,.-=-._.,  @ @._,
     `._ _,-.   )      _,.-'
        `    G.m-"^m`m'        Dmytro O. Redchuk



  reply	other threads:[~2005-02-17 16:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-17 10:59 Dolgov OV
2005-02-17 14:09 ` Dolgov OV
2005-02-17 14:40 ` Dolgov OV
2005-02-17 15:09   ` Dmytro O. Redchuk
2005-02-17 16:35     ` Dolgov OV
2005-02-17 16:44       ` Dmytro O. Redchuk [this message]
2005-02-17 16:00 ` Afanasov Dmitry
2005-02-17 16:53   ` Dolgov OV
2005-02-18 12:55     ` Dolgov OV
2005-02-19 14:33       ` [Comm] [SUMMARY] " Dolgov OV
2005-02-20 19:45         ` gnostik

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=20050217164419.GA5278@ldc.net \
    --to=dor@ldc.net \
    --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