🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Programacion Script

#8539
From: Sand Man
Date: Wed, 30 Oct 2002 21:48
35 lines
2175 bytes
Primero deberia definir las variables $1 y $2, no?

como lo hago?

El killall lo he probado, pero no siempre mata el proceso.

"Jayr Al-Dyn" <jayraldyn@jayraldyn.net> escribi� en el mensaje
news:appjfk$7io$1@rantanplan.linux.es...
> -----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: <appk3e$59f$1@nsnmrro2-gest.nuria.telefonica-data.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!nsnmpen1-lo.nuria.telefonica-data.net!nsnmrro2-lo.nuria.telefonica-data.net!not-for-mail
References: <appg5h$ch5$1@nsnmrro2-gest.nuria.telefonica-data.net> <appjfk$7io$1@rantanplan.linux.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,28cffd7948076415
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-10-30 13:48:34 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!nsnmpen1-lo.nuria.telefonica-data.net!nsnmrro2-lo.nuria.telefonica-data.net!not-for-mail
From: "Sand Man" <sand_man@terra.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Programacion Script
Date: Wed, 30 Oct 2002 22:48:33 +0100
Organization: Telefonica Data Espagna
Lines: 37
Message-ID: <appk3e$59f$1@nsnmrro2-gest.nuria.telefonica-data.net>
References: <appg5h$ch5$1@nsnmrro2-gest.nuria.telefonica-data.net> <appjfk$7io$1@rantanplan.linux.es>
NNTP-Posting-Host: 213-96-115-254.uc.nombres.ttd.es
X-Trace: nsnmrro2-gest.nuria.telefonica-data.net 1036014510 5423 213.96.115.254 (30 Oct 2002 21:48:30 GMT)
X-Complaints-To: usenet@nsnmrro2-gest.nuria.telefonica-data.net
NNTP-Posting-Date: Wed, 30 Oct 2002 21:48:30 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106