Article View: es.comp.os.linux.programacion
Article #11113Re: generar ficheros que no se machaquen
From: Jesús Carrete Montaña
Date: Fri, 28 Dec 2001 18:34
Date: Fri, 28 Dec 2001 18:34
27 lines
1963 bytes
1963 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "Javier" == Javier Loureiro Varela <ohgod_theykilledthespamm@youbastards.es> writes:
Javier> Estoy haciendo un script que necesita crear un
Javier> temporal para grabar una salida... pero no se que comando
Javier> del bash hay para darle un nombre aleatorio no
Javier> concurrente...
Javier> alguna sugerencia?
mktemp . Le pones una parte com�n seguida de seis "X". Por
ejemplo:
mktemp /tmp/aplicacion.XXXXXX
Y te crea el archivo e imprime su nombre.
Un saludo.
- --
I am Bug of Borg. You will be core dumped. Debugging is futile.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 <http://mailcrypt.sourceforge.net/>
iD8DBQE8LLsufUtQQKOnZ1IRAsHQAJ9Rci1LaIV4i9sBrF8KpLY2Wi8yzgCcDR92
oUURop6tlKUhUTq5zNcHp8w=
=On7Q
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<87pu4zgpn3.fsf@meltdown.ion>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!193-152-65-195.uc.nombres.ttd.ES!not-for-mailReferences:
<3c2c5015.8267927@news.mad.ttd.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f86c8,735922ea4c4ad7b7 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2001-12-28 10:58:16 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!193-152-65-195.uc.nombres.ttd.ES!not-for-mail From: kuantiko@escomposlinux.org (Jesús Carrete Montaña) Newsgroups: es.comp.os.linux.programacion Subject: Re: generar ficheros que no se machaquen Date: 28 Dec 2001 19:34:24 +0100 Lines: 27 Sender: kuantiko@meltdown.ion Message-ID: <87pu4zgpn3.fsf@meltdown.ion> References: <3c2c5015.8267927@news.mad.ttd.net> NNTP-Posting-Host: 193-152-65-195.uc.nombres.ttd.es (193.152.65.195) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 1009565894 21861493 193.152.65.195 (16 [54696]) X-Orig-Path: relativistic.homeip.net!nobody User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7