ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Lenya L. Khachaturov" <lenya@chemsell.yaroslavl.ru>
To: Sergey Degtyaryov <mandrake-russian@altlinux.ru>
Subject: [mdk-re] Re: [mdk-re] Re: [mdk-re] Re: [mdk-re] Как убить pppd?
Date: Tue Apr 24 21:03:00 2001
Message-ID: <19682063591.20010424204607@chemsell.yaroslavl.ru> (raw)
In-Reply-To: <19852.010424@globetravel.spb.ru>

Hello Sergey,

Tuesday, April 24, 2001, 8:27:43 PM, you wrote:

SD> Доброго времени суток, Dmitry,

SD> 24.04.2001 в 20:05 Вы сказали буквально следующее:

Dmitry>> Убить процесс /usr/sbin/pppd можно, скажем, выполнив
Dmitry>> "killall /usr/sbin/pppd". Однако делать это Вам, скорее всего, не нужно.
Dmitry>> Сформулируйте задачу конкретнее, и ответ будет более точным.


Dmitry>> Regards,
Dmitry>>         Dmitry

SD> О пользе чтения man, как раз. Надо было читать к killall.
SD> Но все равно, может кому-то лень набирать /usr/sbin =)
SD> Будем считать - практиковался.

SD> SINOPSYS :
SD> killcom [-l] process
SD> -l - не убивать\показать

SD> *killcom

SD> #!/usr/bin/perl
SD> foreach (@ARGV) {
SD> push (@keys, shift @ARGV), next if /-\w/;
SD> }
SD> $victim = shift @ARGV;
SD> open (PS, "ps ax |");
SD> while (<PS>) {
SD> ($pid, $tty, $stat, $time, $command) = split (' '),last if /(\d+)\s+(\w+)\s+(\w+)\s+(.*?)\s+($victim)/;
SD> }
SD> close (PS);
SD> #print getppid, $pid;
SD> #exit;
SD> print "No such process : $victim\n",exit if ((!$pid) || ($pid eq getppid));
SD> print "Found process : $pid $tty $stat $time $command\n";exit if ($keys[0] eq '-l');
SD> print "killing $command\n";
SD> print "Killed successfully\n" if (kill 9, $pid); 

:)))) Сенькс! А как оно работает? killcom pppd вообще ничего не
делает, будучи запущенным без параметров шлепает все подряд, по
очереди.


-- 
Best regards,
 Lenya                            mailto:lenya@georges.home





  reply	other threads:[~2001-04-24 21:03 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     ` Lenya L. Khachaturov [this message]
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
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=19682063591.20010424204607@chemsell.yaroslavl.ru \
    --to=lenya@chemsell.yaroslavl.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