tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Eskil.Swahn () LDC ! lu ! se
To: tru64-unix-managers
Subject: SUMMARY: lpr on non-standard ports..
Date: Fri, 23 Apr 1999 07:55:55 +0000	[thread overview]
Message-ID: <96079040315894.tru64-unix-managers.marc@archive.invalid> (raw)


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

                 reply	other threads:[~1999-04-23  7:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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