tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: lpr on non-standard ports..
@ 1999-04-23  7:55 Eskil.Swahn
  0 siblings, 0 replies; only message in thread
From: Eskil.Swahn @ 1999-04-23  7:55 UTC (permalink / raw)
  To: tru64-unix-managers


Thanks to all who responded. I take the liberty of just forwarding one of
the replies which sums up both question and answer very nicely.

/Eskil

+-----------------------------------------------------------------------+
|  Eskil Swahn                                                          |
|  Eskil.Swahn@LDC.lu.se             tfn +46 46 222 4986                |
|                                                                       |
|                                                                       |
+-----------------------------------------------------------------------+

---------- Forwarded message ----------
Date: Sun, 18 Apr 1999 20:43:31 -0400
From: Sean O'Connell <sean@stat.Duke.EDU>
To: Eskil.Swahn@LDC.lu.se
Subject: Re: lpr on non-standard ports..

On 1999 Apr 19, Eskil.Swahn@LDC.lu.se (aka Eskil.Swahn@LDC.lu.se) wrote:
> 
> Hi!
> 
> Has anyone used 'lpr' to send printouts to nonstandard ports on remote
> printers. That is, what do I add to /etc/printcap to send a printout on a
> remote printer on a different port than 515? I have a suspicion that this
> isn't possible with standard 'lpr'. I think I can get it to work with the
> LPRNG-package which I have looked a little at but it would be nicer if it
> worked with the standard kit..

This is quite feasible as long as you can get a tcp/ip connection
to the port in question.  The following is example for printing to
the jetdirect card on an HP printer (tcp 9100 is defined as jetdirect
in /etc/services).

Just use an lp entry like the following without an 'rm' or 'rp' entry.

yourprinter:\
	:lp=@yourprinter/jetdirect:\
	:sd=/var/spool/yourprinter:\
	:lf=/var/adm/lpd-errs:\
	:af=/var/adm/yourpritner-acct:\
	:if=...:\
	:mx#0:

I _think_ that you can use a number in place of jetdirect, but
I cannot confirm that:

	:lp=@yourprinter/9100:\

Hope this helps,
S        
-- 
-------------------------------------------------------------------------
Sean O'Connell                                  Email: sean@stat.Duke.EDU
Institute of Statistics and Decision Sciences   Phone: (919) 684-5419
Duke University                                 Fax:   (919) 684-8594

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-04-23  7:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-23  7:55 SUMMARY: lpr on non-standard ports Eskil.Swahn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox