On 23 Jun 2004 08:18:59 -0700, Thomas Koehn <(E-Mail Removed)> wrote:
> I want to set up a printer to be used remotely. This printer should
> not print to a device it should print to files. Every document should
> have its own name. Is there a way to do that with cups or lpr ?
In the good old days when I got started with Linux (1995), and before
there were much in the way of automatic print filters, we had to write our
own print filter scripts, which for lpd like servers were listed in
/etc/printcap as either "if" (input filter run per file printed) or "of"
(output filter run once for all output). You would likely want "if" for a
script to save each print file individually. Data is passed to stdin of
the script. Since your script would handle the output, the device to
print to would be lp=/dev/null (the bit bucket).
I am not familiar enough with cups to know how filter scripts tie in, but
cups docs should explain it.
For your script to get unique filenames see "man mktemp".
--
David Efflandt - All spam ignored
http://www.de-srv.com/