From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1144 Path: main.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: temp file name conflicts in unattended document generation Date: Tue, 02 Nov 1999 15:45:52 +0000 (GMT) Sender: owner-ntg-context@let.uu.nl Message-ID: <14367.1840.212752.529509@PC709.wkap.nl> References: <381E1496.5A90@wxs.nl> <199911021104.MAA01352@servalys.hobby.nl> <000b01bf2531$541bda80$0c01a8c1@loginbv.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035391984 30310 80.91.224.250 (23 Oct 2002 16:53:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:53:04 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:1144 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1144 Gilbert> For Hans: $$ returns the curent process Id in unix, which Gilbert> is guaranteed to be unique. Of-course, Windows has Gilbert> process Id's but I don't know if you can get to them from Gilbert> within perl. I wouldn't be surprised if that Gilbert> worked. Since perl borrows much from shell-script Gilbert> programming, $$ is probably an existing variable in perl Gilbert> which does the job. This works, at least in the newer perls (in the sense that you actually get the process Id or at least something that is usable as such). In the older perl ports, as well as in the DJGPP (DOS) port, this will just give you a random number. Which should work just as well regardless. Greetings, Taco