Networking Forums

Networking Forums > Computer Networking > Linux Networking > remote printing to file

Reply
Thread Tools Display Modes

remote printing to file

 
 
Thomas Koehn
Guest
Posts: n/a

 
      06-23-2004, 03:18 PM
Hi,

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 ?

Thomas
 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      06-23-2004, 03:50 PM
Thomas Koehn <(E-Mail Removed)> wrote:
> 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 ?


Sure there is. Just create a script that save the document into
a temporary name and make lpr or cups pointing to that script.
In the samba-howto there is an example of such a thing to convert
documento into PDF for an entire network.

Davide

--
| A witty saying proves nothing, but saying something pointless gets
| people's attention.
|
|
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      06-24-2004, 01:39 AM
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/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote printing using Remote Desktop over VPN Philip Herlihy Windows Networking 8 11-29-2007 07:13 PM
remote printing Penny Wireless Networks 1 12-04-2004 12:20 PM
Remote Printing Fergedaboudit Wireless Networks 1 12-01-2004 10:18 PM
Remote Printing G. Broadband Hardware 1 04-06-2004 03:45 PM
Printing remote Mark Windows Networking 1 01-22-2004 07:08 PM



1 2 3 4 5 6 7 8 9 10 11