🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Conocer si un script se ha llamado a sí mismo

#6611
From: sio2
Date: Mon, 09 Jun 2003 16:31
17 lines
1579 bytes
Tengo un script que bajo cierta condici�n se puede llamar a s� mismo.

El caso es que necesito saber cu�ntas veces se ha llamado a s� mismo y
he pensado hacerlo:

a) A lo cutre, con un par�metro.
b) Usando ps.

Me gustar�a hacerlo con ps, pero leyendo el manual de ps no doy con el
modo correcto.

-- 
Los grandes hombres solemos ser modestos.
                  --- Juan de Mairena --
   Si     Di�xido de Silicio |        Debian GNU/Linux 
  /  \         (SiO2)        |    Jos� Miguel S�nchez Al�s
 O    O   Mineral de Cuarzo  |  sio2.arr@ba.online.fr | URL #257033
Technical Details
Message-ID: <slrnbe9djd.5nd.sio2.arr@cebolleta.net.dhis.org>
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!uni-berlin.de!22.red-80-37-129.pooles.rima-tde.NET!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,9e3b5a3ca8b4d64b,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-06-09 10:00:27 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!uni-berlin.de!22.red-80-37-129.pooles.rima-tde.NET!not-for-mail
From: sio2 <sio2.arr@ba.online.fr>
Newsgroups: es.comp.os.linux.programacion
Subject: Conocer si un script se ha llamado a sí mismo
Date: Mon, 9 Jun 2003 18:31:42 +0200
Lines: 17
Message-ID: <slrnbe9djd.5nd.sio2.arr@cebolleta.net.dhis.org>
Reply-To: sio2.arr@ba.online.fr
NNTP-Posting-Host: 22.red-80-37-129.pooles.rima-tde.net (80.37.129.22)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1055178025 15129253 80.37.129.22 (16 [113866])
X-Orig-Path: cebolleta.net.dhis.org!news
User-Agent: slrn/0.9.7.4 (Linux)