From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079040315894.tru64-unix-managers.marc@archive.invalid> From: Eskil.Swahn () LDC ! lu ! se Date: Fri, 23 Apr 1999 07:55:55 +0000 To: tru64-unix-managers Subject: SUMMARY: lpr on non-standard ports.. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079040315894 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 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