Article View: es.comp.os.linux.programacion
Article #10936Re: generar ficheros que no se machaquen
From: Jesus Manuel NAVARRO LOPEZ
Date: Thu, 17 Jan 2002 09:49
Date: Thu, 17 Jan 2002 09:49
42 lines
1967 bytes
1967 bytes
Hola, Raul: Raul Luna Rodriguez wrote: > Javier Loureiro Varela escribi�: > >> hI! >> >> Estoy haciendo un script que necesita crear un temporal para >>grabar una salida... pero no se que comando del bash hay para darle un >>nombre aleatorio no concurrente... >> >> alguna sugerencia? >> >>Signed >> >> Javier Loureiro Varela >> > > > "$$" es el nombre del proceso (PID) con el que se est� ejecutando en ese > momento. > [...] > Bash tambi�n dispone de un generador de numeros aleatorios, que es la > variable $RANDOM. > ...y como se ha comentado por aqu� no hace mucho, mktemp est� justo para eso. -- SALUD, Jes�s *** jesus_navarro@promofinarsa.es ***
Technical Details
Message-ID:
<3C469E0E.50201@promofinarsa.es>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!isdnet!wanadoo.fr!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!news.antakira.com!elrond.intranet!nobodyReferences:
<3c2c5015.8267927@news.mad.ttd.net> <3C4604A5.60311DEA@navegalia.com>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,735922ea4c4ad7b7 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2002-01-17 02:11:03 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!isdnet!wanadoo.fr!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!news.antakira.com!elrond.intranet!nobody From: Jesus Manuel NAVARRO LOPEZ <jesus_navarro@promofinarsa.es> Newsgroups: es.comp.os.linux.programacion Subject: Re: generar ficheros que no se machaquen Date: Thu, 17 Jan 2002 10:49:02 +0100 Organization: PROMOFINARSA, S.A. Lines: 43 Message-ID: <3C469E0E.50201@promofinarsa.es> References: <3c2c5015.8267927@news.mad.ttd.net> <3C4604A5.60311DEA@navegalia.com> NNTP-Posting-Host: 212.25.147.135 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.wanadoo.es 1011261696 15745 212.25.147.135 (17 Jan 2002 10:01:36 GMT) X-Complaints-To: usenet@wanadoo.es NNTP-Posting-Date: Thu, 17 Jan 2002 10:01:36 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-ES, es, en