From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1143 Path: main.gmane.org!not-for-mail From: "Gilbert van den Dobbelsteen" Newsgroups: gmane.comp.tex.context Subject: Re: temp file name conflicts in unattended document generation Date: Tue, 2 Nov 1999 13:53:58 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <000b01bf2531$541bda80$0c01a8c1@loginbv.com> References: <381E1496.5A90@wxs.nl> <199911021104.MAA01352@servalys.hobby.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035391983 30306 80.91.224.250 (23 Oct 2002 16:53:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:53:03 +0000 (UTC) Original-To: "Context List" Xref: main.gmane.org gmane.comp.tex.context:1143 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1143 > > Why don't you use $$.xxx for those files? You only need to remember to > remove $$.* at the end of you scripts. Nice trick, works fine in unix, but would probably break comptibiliy with win23 platforms, unless the $$ is available. For Hans: $$ returns the curent process Id in unix, which is guaranteed to be unique. Of-course, Windows has process Id's but I don't know if you can get to them from within perl. I wouldn't be surprised if that worked. Since perl borrows much from shell-script programming, $$ is probably an existing variable in perl which does the job. Gilbert.