From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1152 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: temp file name conflicts in unattended document generation Date: Thu, 04 Nov 1999 08:59:56 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <38213CFC.53BB@wxs.nl> References: <14366.46860.138989.757342@PC709.wkap.nl> Reply-To: pragma@wxs.nl 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 1035391991 30359 80.91.224.250 (23 Oct 2002 16:53:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:53:11 +0000 (UTC) Cc: Taco Hoekwater , ntg-context@ntg.nl Original-To: "Ed L. Cashin" Xref: main.gmane.org gmane.comp.tex.context:1152 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1152 Ed L. Cashin wrote: > > I agree with Ed here, there *is* a bit of a clash (also for > > mpgraph.mp). But my solution is to use /var/tmp/$client-id as > > directory, which solves the problem nicely. > > Wow, thanks, that's an excellent idea! I heard about or saw someone > do that once and had forgotten the technique. In the current/next release when one says \protectbufferstrue in for instance cont-sys.tex, temporary files will be prefixed. The protection concerns the utility file copy, used to determine if more runs are needed, the buffers used in a run and in figure inclusion (put a table in a buffer and include it as 'external' figure and you can scale etc like any figure), mpgraphics, mprun (a different kind of graphics), and --still undocument but very well present-- the context_to_mp status info file, which makes it possible to set up page backgrounds spanning/combining areas, etc. Especially handling the mp files is important, because in a next release I will introduce extensive embedded graphic support, acting on graphic layers etc. Of course the texexec option file is also protected now. Now, prefixing is handled low level by: \def\bufferprefix% {\ifprotectbuffers\jobname-\fi} Technically, I can let texexec redefine this macro in the option file. The best place for specifying the alternative prefix is probably the texexec.ini file. Something: for tetex set TeXScratchPath to /var/tmp/$client-id or so. which would result in print OPT "\\def\\bufferprefix{/var/tmp/$client-id/\n" (of course I have to resolve the id first). This would at least provide a decent cleanup method. Now, how is this on windows? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------