I have lpd set up so that I can print from the network, but I have lpsrvr also running so that users on the QNX network can print from photon. In any case, this afternoon, after apparently messing with some settings, lpd now gives this error when I type lpr -P lpt1 :
lpr: lpt1: lpt1: unknown printer
The odd thng is the double listing of the printer. Everywhere I look, it says the error should just be:
lpr: : unknown printer.
My /etc/printcap file is as follows:
lpt1:
:lp=//4/dev/spool/txt:sd//4/tmp:
Lpd is running on node 1 which is connected to the network, while the printer is on node 4 because node 1 doesn’t run photon. lpsrvr is running on node 4.
I’m pretty much at my wits end right now. Does anyone have any clue what might be going on here? I’m really quite new to the Unix/QNX world and any help would be very much appreciated. Thanks!
Node 1 is the only one with TCP/IP, but it does not run photon. Therefore, lpd must go on it (so it can talk to the rest of the network) but lpsrvr cannot (because we need to print from photon).
Node 4 runs lpsrvr and photon, so it is set up with the printer in the office. Lpsrvr works fine, anyone can print from qnx/photon. Lpd is busted…
There is nothing in /usr/spool/lp.
The following items are in /dev/spool:
doc
local
ps
ps.phs
tmp
txt
I don’t have an easy way of getting to the output of sin (I am on a Windows box right now) but I can type out the running processes.
This is probably why lpd is telling me that the entry in my printcap is “unknown.” Still, I can’t figure out a way for lpd to recognize the entry…
Also, the only thing that shows up in my syslog with respect to lpd is “/usr/spool/output/lpd.lock: failed to obtain lock” This seems to happen at random intervals.
Yeah, the missing = was a typo…it is actually there.
Lpsrvr works fine. I can use lp and print from any of the nodes. Only lpd seems to be screwy. The printer is not a remote printer, it is hooked up to node 4, although I would eventually like to be able to print to it from remote computers, so I don’t need the rm.