From: Sergey Degtyaryov <maga@globetravel.spb.ru> To: "Dmitry V. Levin" <mandrake-russian@altlinux.ru> Subject: [mdk-re] Re: [mdk-re] Re: [mdk-re] Как убить pppd? Date: Tue Apr 24 20:26:12 2001 Message-ID: <19852.010424@globetravel.spb.ru> (raw) In-Reply-To: <20010424200516.B7026@ldv.office.alt-linux.org> Доброго времени суток, Dmitry, 24.04.2001 в 20:05 Вы сказали буквально следующее: Dmitry> Убить процесс /usr/sbin/pppd можно, скажем, выполнив Dmitry> "killall /usr/sbin/pppd". Однако делать это Вам, скорее всего, не нужно. Dmitry> Сформулируйте задачу конкретнее, и ответ будет более точным. Dmitry> Regards, Dmitry> Dmitry О пользе чтения man, как раз. Надо было читать к killall. Но все равно, может кому-то лень набирать /usr/sbin =) Будем считать - практиковался. SINOPSYS : killcom [-l] process -l - не убивать\показать *killcom #!/usr/bin/perl foreach (@ARGV) { push (@keys, shift @ARGV), next if /-\w/; } $victim = shift @ARGV; open (PS, "ps ax |"); while (<PS>) { ($pid, $tty, $stat, $time, $command) = split (' '),last if /(\d+)\s+(\w+)\s+(\w+)\s+(.*?)\s+($victim)/; } close (PS); #print getppid, $pid; #exit; print "No such process : $victim\n",exit if ((!$pid) || ($pid eq getppid)); print "Found process : $pid $tty $stat $time $command\n";exit if ($keys[0] eq '-l'); print "killing $command\n"; print "Killed successfully\n" if (kill 9, $pid); \\|||// ( O O ) С уважением, Сергей -oOOO--(_)--OOOo---------------------------------
next prev parent reply other threads:[~2001-04-24 20:26 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 ` Sergey Degtyaryov [this message] 2001-04-24 21:03 ` [mdk-re] Re: [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 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=19852.010424@globetravel.spb.ru \ --to=maga@globetravel.spb.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