🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #8537

Re: Programacion Script

#8537
From: Jayr Al-Dyn
Date: Wed, 30 Oct 2002 21:37
27 lines
1774 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Buenas, Sand Man.

> 1� Identifique el PID de  un proceso del cual se conoce el nombre.
> 2� Matar ese proceso por su numero de PID.
> 

Podr�as usar "killall", que hace eso que pides. Si no, pues algo as� 
servir�a:

#!/bin/bash
kill `ps -ef | grep $1 | grep -v grep | awk '{print $2}'`

- -- 
Jayr Al-Dyn
Usuario Linux #95614 en counter.li.org
http://www.jayraldyn.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj3AUScACgkQ7KeWPNVnigAonwCcDepG3yUot4zlgn+XNr3+38mH
Mq4AniK3n7GZluZyaHorxiiZzIhm9NIi
=c837
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <appjfk$7io$1@rantanplan.linux.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!prodigy.com!news.astraweb.com!news-small.astraweb.com!news-xfer.cox.net!mainake.escomposlinux.org!not-for-mail
References: <appg5h$ch5$1@nsnmrro2-gest.nuria.telefonica-data.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,28cffd7948076415
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-10-30 13:37:59 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!prodigy.com!news.astraweb.com!news-small.astraweb.com!news-xfer.cox.net!mainake.escomposlinux.org!not-for-mail
From: Jayr Al-Dyn <jayraldyn@jayraldyn.net>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Programacion Script
Date: Wed, 30 Oct 2002 22:37:39 +0100
Organization: MALOU
Lines: 27
Message-ID: <appjfk$7io$1@rantanplan.linux.es>
References: <appg5h$ch5$1@nsnmrro2-gest.nuria.telefonica-data.net>
NNTP-Posting-Host: 213-98-164-133.uc.nombres.ttd.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
X-Trace: rantanplan.linux.es 1036013876 7768 213.98.164.133 (30 Oct 2002 21:37:56 GMT)
X-Complaints-To: usenet@mainake.escomposlinux.org
NNTP-Posting-Date: Wed, 30 Oct 2002 21:37:56 +0000 (UTC)
User-Agent: KNode/0.7.1