Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Helge Blischke Newsgroups: comp.lang.postscript Subject: Re: How can I overwrite existing files with new input to running Ghostscript?. Followup-To: comp.lang.postscript Date: Sun, 09 Dec 2012 22:13:17 +0100 Lines: 25 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: individual.net F60HIb8SMwP+EuCIgi7TMQ6BZfS3ggg0ZbS9C+obVck9iLC8ATwMOD30CZz4spOEx4 Cancel-Lock: sha1:HSxyoL/0yyPmPkIjB7gJ61BzKvY= User-Agent: KNode/0.99.01 Xref: csiph.com comp.lang.postscript:1160 Ernie Kent wrote: > I need Ghostscript to repeatedly write small, jpg images rapidly to the > same file from PS or EPS input on STDIN. Once Ghostscript is up and > running it takes an acceptable time to create my images. However, to > repeatedly start Ghostscript and have it do the same job, quit and restart > again is taking too long. I need to understand how to get Ghostscript to > write a Postscript page to a jpg file, stay running and accept another > Postscript page description from STDIN, write that to the same file, > overwriting the first, and repeat that cycle indefinitely until told to > quit. (This is all on a Linux machine by the way.) > > I've been knocking my head against this, and finding the documentation not > very helpful. The -dJOBSERVER switch looks like it should do something > like the desired operation but I can't get it to. Can you give me any help > to get on the right track? Look at the device parameter OutputFile which can be used as a key / value pair in the pagedevice dictionary. Depending on how your input is irganized, you may need to intercept showpage to close the current output file and open a new one. Helge