From: Aristarh <aristarh@online.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] Re: [mdk-re] Re: [mdk-re] Как убить pppd?
Date: Tue Apr 24 21:08:01 2001
Message-ID: <01042421114700.02371@aristarh.home> (raw)
In-Reply-To: <16781513099.20010424203657@chemsell.yaroslavl.ru>
24 Апрель 2001 20:36, Вы написали:
> Hello Dmitry,
>
> Tuesday, April 24, 2001, 8:05:16 PM, you wrote:
>
> DVL> On Tue, Apr 24, 2001 at 04:19:53PM +0400, Lenya L. Khachaturov wrote:
> >> Hello mandrake-russian,
> >>
> >> Подскажите, пожалуйста, скриптик для убийства pppd, например такой:
> >> grep'нуть результат команды `ps ax`, найти такую строчку
> >> 2527 ttyS0 S 0:00 /usr/sbin/pppd modem crtscts defaultroute
> >> usehostname... и сделать kill 2527
> >> Заранее спасибо!
>
> DVL> Убить процесс /usr/sbin/pppd можно, скажем, выполнив
> DVL> "killall /usr/sbin/pppd". Однако делать это Вам, скорее всего, не
> нужно. DVL> Сформулируйте задачу конкретнее, и ответ будет более точным.
>
> Хм, на самом деле - "killall - kill processes by name". По-хорошему
> конечно не нужно, нужно просто интерфейс опускать. Но я уже говорил -
> по ifdown ppp0 не работает. Я выслал свои скрипты, что же нужно
> сделать, чтобы стандартным способом интерфейс опускать?
/sbin/ifconfig ppp0 down && /usr/bin/killall -9 kppp
Так делается у меня дома в 10 утра, когда заканчивается ночная халява с
доступом в сеть. kppp убивается, чтоб не смел перезванивать.
Что-нибудь пришить можно так.
kill -s 9 `ps ax | grep program_name | awk '{print $1}'`
Yuri N. Sedunov
St. Petersburg
next prev parent reply other threads:[~2001-04-24 21:08 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-24 16:19 Lenya L. Khachaturov
2001-04-24 18:19 ` cornet
2001-04-24 19:35 ` [mdk-re] Re[2]: " Sergey Degtyaryov
2001-04-24 19:54 ` [mdk-re] Re[2]: [mdk-re] ëÁË ÕÂÉÔØ pppd? Arthur V.Sidorenko
2001-04-24 20:28 ` [mdk-re] Re: [mdk-re] Re[2]: [mdk-re] Как убить pppd? Lenya L. Khachaturov
2001-04-24 20:44 ` Sergei
2001-04-25 11:11 ` Dmitry Dmitriev
2001-04-25 12:05 ` [mdk-re] Re[2]: " Paul A. Moudrov
2001-04-25 12:43 ` Dmitry Dmitriev
2001-04-25 14:33 ` [mdk-re] Re[2]: [mdk-re] Re[2]: [mdk-re] ëÁË ÕÂÉÔØ pppd? Serg
2001-04-25 20:33 ` [mdk-re] Re: [mdk-re] Re[2]: [mdk-re] Re[2]: [mdk-re] Как убить pppd? Lenya L. Khachaturov
2001-04-24 20:27 ` Lenya L. Khachaturov
2001-04-25 23:08 ` [mdk-re] " Mikhail Zabaluev
2001-04-25 23:38 ` Roman S
2001-04-26 11:33 ` Sergey S. Skulachenko
2001-04-26 20:01 ` [mdk-re] " Alexey Voinov
2001-04-29 13:07 ` Mikhail Zabaluev
2001-04-24 20:00 ` Dmitry V. Levin
2001-04-24 20:26 ` [mdk-re] " Sergey Degtyaryov
2001-04-24 21:03 ` [mdk-re] " Lenya L. Khachaturov
2001-04-24 21:15 ` [mdk-re] ssh Michael Bykov
2001-04-24 21:23 ` Sergey Vlasov
2001-04-24 21:31 ` Michael Bykov
2001-04-24 21:38 ` Dmitry V. Levin
2001-04-24 21:44 ` Michael Bykov
2001-04-24 21:45 ` Sergey Vlasov
2001-04-24 20:37 ` [mdk-re] Re: [mdk-re] Re: [mdk-re] Как убить pppd? Lenya L. Khachaturov
2001-04-24 21:08 ` Aristarh [this message]
2001-04-25 17:26 ` [mdk-re] Re[2]: " Lenya L. Khachaturov
2001-04-25 23:14 ` Sergei
2001-04-25 6:57 ` [mdk-re] ëÁË ÕÂÉÔØ pppd? Russu V.F.
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=01042421114700.02371@aristarh.home \
--to=aristarh@online.ru \
--cc=mandrake-russian@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