lprng and printing to remote server

lprng and printing to remote server

Post by peter pils » Sun, 12 Aug 2001 01:22:51



On my server is a printer and I want to use this for printing from my
laptop. So far, so easy. Now I want to be able to print even when I'm not
connected to this server and keep this prints in a local spool until my
server is reachable again.

When I just specify in printcap

        server:

        :sd=/var/spool/lpd/server

the printjob is sent directly to the remote server without local spooling
and lpr does  not terminate until the printjob was sucessfully delivered ...

any idea ?

peter

 
 
 

lprng and printing to remote server

Post by Dave Uhrin » Sun, 12 Aug 2001 07:00:03



> On my server is a printer and I want to use this for printing from my
> laptop. So far, so easy. Now I want to be able to print even when I'm not
> connected to this server and keep this prints in a local spool until my
> server is reachable again.

> When I just specify in printcap

>         server:

>         :sd=/var/spool/lpd/server

> the printjob is sent directly to the remote server without local spooling
> and lpr does  not terminate until the printjob was sucessfully delivered
> ...

> any idea ?

> peter

The lp= entry should be blank.  And you need a \ at the end of each line
except the last.  This one works well, LPRng on both client and server:

# /etc/printcap
lp|HP-812C DeskJet on bar:\
        :lp=:sd=/var/spool/lpd/lp:lf=/var/spool/lpd/lp/lp-errs:\
        :rm=bar:rp=lp

bar is the hostname of the print server and its print spool with apsfilter
is lp.

 
 
 

lprng and printing to remote server

Post by Dave Uhrin » Mon, 13 Aug 2001 00:29:15




>> On my server is a printer and I want to use this for printing from my
>> laptop. So far, so easy. Now I want to be able to print even when I'm not
>> connected to this server and keep this prints in a local spool until my

                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

>> server is reachable again.

>> When I just specify in printcap

>>         server:

>>         :sd=/var/spool/lpd/server

>> the printjob is sent directly to the remote server without local spooling
>> and lpr does  not terminate until the printjob was sucessfully delivered
>> ...

>> any idea ?

>> peter

> The lp= entry should be blank.  And you need a \ at the end of each line
> except the last.  This one works well, LPRng on both client and server:

> # /etc/printcap
> lp|HP-812C DeskJet on bar:\
>         :lp=:sd=/var/spool/lpd/lp:lf=/var/spool/lpd/lp/lp-errs:\
>         :rm=bar:rp=lp

> bar is the hostname of the print server and its print spool with apsfilter
> is lp.

Missed seeing that first time around.  I suppose you are trying to print a
web page.  In that case, just print to a file in your home directory, then
send it to the printer when your laptop is again connected to the network.
 
 
 

lprng and printing to remote server

Post by peter pils » Mon, 13 Aug 2001 05:58:01



> Missed seeing that first time around.  I suppose you are trying to print a
> web page.  In that case, just print to a file in your home directory, then
> send it to the printer when your laptop is again connected to the network.

No, there are two cases, where I need this behavior:

* Some printings (statusreports) are autogenerated on my laptop via anacron
and so they often get started when I'm offroad
* On heavy days I get a load to print offroad and saving and then printing
when the server is reachable again is unconvenient.

There is an easy solution for my problem if I just create a short script
that stores the spool-files and a cronentry checks this files and prints em
out if the printer is reachable, but I'm quite sure, lprng can do this on
its own, I just dont figure out how, but I'll join and ask their
mailinglist and tell the result here ..

thnx,
peter

 
 
 

lprng and printing to remote server

Post by Miroslaw Kwasnia » Tue, 14 Aug 2001 19:00:10



pp>
pp>On my server is a printer and I want to use this for printing from my
pp>laptop. So far, so easy. Now I want to be able to print even when I'm not
pp>connected to this server and keep this prints in a local spool until my
pp>server is reachable again.
pp>
pp>When I just specify in printcap
pp>
pp>        server:

pp>        :sd=/var/spool/lpd/server

pp>
pp>the printjob is sent directly to the remote server without local spooling
pp>and lpr does  not terminate until the printjob was sucessfully delivered ...
pp>
pp>any idea ?

Hi, how about:

server:

server:

        :sd=/var/spool/lpd/server
        :server

Mirek

 
 
 

1. LPRng remote printing and -Zoption

Two Linux PCs are using the LPRng print spooler, one is a print server,
the other prints remotely to it.

Will a -Zoption specified to the remote printer get passed to the server
printer as a -Zoption?

--:     _           _    _ _
 _oo__ |_|_ |__  _ |  _ |_|_o _  pc at it dot net dot a u |
//`'\_ | (/_|(/_|  |_(_|| | || |            it.net.au/~pc |
/                 PO Box 869, Hillarys WA 6923, AUSTRALIA |

2. Disk light on full time with kernels => 2.4.13

3. Router/Print server & LPRng.

4. Woah! Natalie Cole is Skipping!

5. Howto send print jobs to a remote print server (SMC Barricade)

6. HELP: Mail from outside Bounces

7. remote printing fails after upgrading print server to Solaris-2.8?

8. 2.4.19rc2aa1

9. Remote Printing from SCO Unix to a print Server.

10. lpd stops sending queued print jobs to remote Print Server.

11. Problem with Remote Printing Thru Print Servers

12. How to set up linux to print to a remote print server (SMC Barricade)

13. How to supress Extra FormFeed when Printing to a remote Print Server?