Hi there, > > 'echo all|pcap-query' works as specified too. > > Maybe you could show us the output, too? > > And what exactly are the error messages you're getting?
I did have them in my original post. I'll include a small bit of output later in this post. > When I do something like "lpc status all", I get: > > Printer '[EMAIL PROTECTED]' - cannot open connection - No such file or directory > Make sure the remote host supports the LPD protocol > and accepts connections from this host and from non-privileged (>1023) ports Aha, I too get this from machines that don't have an lpd running... [locke]toby: lpc -a status Printer '[EMAIL PROTECTED]' - cannot open connection - No such file or directory Make sure the remote host supports the LPD protocol and accepts connections from this host and from non-privileged (>1023) ports [locke]toby: ... but for a machine which does have an lpd running (for a locally attached printer), I get what I posted originally: [kant]toby: lpc -a status Printer Printing Spooling Jobs Server Subserver Redirect Status/(Debug) [EMAIL PROTECTED] enabled enabled 0 none none [EMAIL PROTECTED]: spool queue for 'fh2' does not exist on server kant.inf.ed.ac.uk non-existent printer or you need to run 'checkpc -f' [EMAIL PROTECTED]: spool queue for 'jc4' does not exist on server kant.inf.ed.ac.uk non-existent printer or you need to run 'checkpc -f' .... And doing my printcap lookup of 'all' on either of these machines gives me: [kant]toby: echo all|pcap-query |head -5 local:lp=/dev/lp0:if=/usr/share/printing/psif:sd=/var/spool/lpd/%P:sh:mx=0:mc=0 fh2|fh-c25|hpfh2|HP Laserjet 4100DTN [1200dpi] in C25 FH:[EMAIL PROTECTED]:tc=.krbclientfh sb2|sb-c1|hpsb2|HP Laserjet 4050N [1200dpi] in C1 SB:[EMAIL PROTECTED]:tc=.krbclientsb jc4|HP Laserjet 4500 in KB:[EMAIL PROTECTED]:tc=.krbclientjcmb ... As I said, this printcap output is fine for lpr, lpq, lpd... lpc doesn't seem to be taking noticed of the [EMAIL PROTECTED] part which directs it to the correct print server. > but if I specify "lpc status [EMAIL PROTECTED]", then it works. Maybe > your problem is related? This isn't really an option as we have five print servers. All this is because a java program that we need to support finds out about local printers by doing 'lpc -a status'. Toby ----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -----------------------------------------------------------------------------
