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_at_LDC.lu.se tfn +46 46 222 4986 |
| |
| |
+-----------------------------------------------------------------------+
---------- Forwarded message ----------
Date: Sun, 18 Apr 1999 20:43:31 -0400
From: Sean O'Connell <sean_at_stat.Duke.EDU>
To: Eskil.Swahn_at_LDC.lu.se
Subject: Re: lpr on non-standard ports..
On 1999 Apr 19, Eskil.Swahn_at_LDC.lu.se (aka Eskil.Swahn_at_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=_at_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=_at_yourprinter/9100:\
Hope this helps,
S
--
-------------------------------------------------------------------------
Sean O'Connell Email: sean_at_stat.Duke.EDU
Institute of Statistics and Decision Sciences Phone: (919) 684-5419
Duke University Fax: (919) 684-8594
Received on Fri Apr 23 1999 - 07:58:45 NZST