lpr printing to jetdirect card

I am having a problem with lpr.

I have an entry in /etc/printcap for a jetdirect card, but I can’t get it to
print.
From what I can see, all the info in the printcap file isn’t being used.
I have - :sd=/usr/spool/output/oki5: - but it keeps putting the spool files
in /usr/spool/output/lpd.

here are some files & other info

cat /etc/printcap

oki5|Okidata on jetdirect:
:lp=:
:rm=192.168.0.55:
:rp=text:
:sd=/usr/spool/output/oki5:

lpr -Poki5 /tmp/AA

pwd

/usr/spool/output

ll

total 33
drwxrwxrwx 4 root root 4096 May 04 12:00 ./
drwxrwxr-x 6 root root 4096 May 04 09:39 …/
drwxrwxrwx 2 root root 4096 May 04 12:01 lpd/
-rw-r–r-- 1 root root 8 May 04 12:00 lpd.lock
drwxrwxrwx 2 root root 4096 May 04 10:36 oki5/

ll *

-rw-r–r-- 1 root root 8 May 04 12:00 lpd.lock

lpd:
total 20
drwxrwxrwx 2 root root 4096 May 04 12:01 ./
drwxrwxrwx 4 root root 4096 May 04 12:00 …/
-rw-rw—x 1 root root 4 May 04 12:01 .seq*
-rw-rw---- 1 bin -1 81 May 04 12:01 cfA001localhost
-rw-rw---- 1 root -1 133 May 04 12:01 dfA001localhost
-rw-r–r-- 1 root root 6 May 04 12:01 lock

oki5:
total 16
drwxrwxrwx 2 root root 4096 May 04 10:36 ./
drwxrwxrwx 4 root root 4096 May 04 12:00 …/

lprc status

oki5:
queuing is enabled
printing is enabled
1 entry in spool area

cat /tmp/syslog

May 4 12:01:21 node 1 lpd[30104]: /dev/console: No such file or directory
May 4 12:01:21 node 1 lpd[30104]: /dev/lp: No such file or directory


the following line is in the /etc/hosts file
127.0.0.1 loc localhost

cat /etc/hosts.lpd

loc
localhost

It looks to me, like the output is trying to go to /dev/lp ??
Is that correct - and if so, WHY??

-Glenn Sherman

I’m not sure, but I would see if the printcap file has some
undesireable characters - perhaps a space or so after the “”
or instead of ?

Richard

Glenn Sherman wrote:

I am having a problem with lpr.

I have an entry in /etc/printcap for a jetdirect card, but I can’t get it to
print.
From what I can see, all the info in the printcap file isn’t being used.
I have - :sd=/usr/spool/output/oki5: - but it keeps putting the spool files
in /usr/spool/output/lpd.

here are some files & other info

cat /etc/printcap

oki5|Okidata on jetdirect:
:lp=:
:rm=192.168.0.55:
:rp=text:
:sd=/usr/spool/output/oki5:

lpr -Poki5 /tmp/AA

pwd

/usr/spool/output

ll

total 33
drwxrwxrwx 4 root root 4096 May 04 12:00 ./
drwxrwxr-x 6 root root 4096 May 04 09:39 …/
drwxrwxrwx 2 root root 4096 May 04 12:01 lpd/
-rw-r–r-- 1 root root 8 May 04 12:00 lpd.lock
drwxrwxrwx 2 root root 4096 May 04 10:36 oki5/

ll *

-rw-r–r-- 1 root root 8 May 04 12:00 lpd.lock

lpd:
total 20
drwxrwxrwx 2 root root 4096 May 04 12:01 ./
drwxrwxrwx 4 root root 4096 May 04 12:00 …/
-rw-rw—x 1 root root 4 May 04 12:01 .seq*
-rw-rw---- 1 bin -1 81 May 04 12:01 cfA001localhost
-rw-rw---- 1 root -1 133 May 04 12:01 dfA001localhost
-rw-r–r-- 1 root root 6 May 04 12:01 lock

oki5:
total 16
drwxrwxrwx 2 root root 4096 May 04 10:36 ./
drwxrwxrwx 4 root root 4096 May 04 12:00 …/

lprc status

oki5:
queuing is enabled
printing is enabled
1 entry in spool area

cat /tmp/syslog

May 4 12:01:21 node 1 lpd[30104]: /dev/console: No such file or directory
May 4 12:01:21 node 1 lpd[30104]: /dev/lp: No such file or directory

the following line is in the /etc/hosts file
127.0.0.1 loc localhost

cat /etc/hosts.lpd

loc
localhost

It looks to me, like the output is trying to go to /dev/lp ??
Is that correct - and if so, WHY??

-Glenn Sherman

Glenn Sherman wrote:

cat /etc/printcap

oki5|Okidata on jetdirect:
:lp=:
:rm=192.168.0.55:
:rp=text:
:sd=/usr/spool/output/oki5:

May be I’m wrong, but AFAIK ‘jetdirect’ uses the queue names
‘raw1’, ‘raw2’, etc.

cat /tmp/syslog

May 4 12:01:21 node 1 lpd[30104]: /dev/console: No such file or directory
May 4 12:01:21 node 1 lpd[30104]: /dev/lp: No such file or directory

You did restart your lpd, right?

Best regards,

Karsten.


| / | __ ) | Karsten.Hoffmann@mbs-software.de MBS-GmbH
| |/| | _ _
\ Phone : +49-2151-7294-38 Karsten Hoffmann
| | | | |
) |__) | Fax : +49-2151-7294-50 Roemerstrasse 15
|| ||// Mobile: +49-172-3812373 D-47809 Krefeld