printing TCP/IP

Hello,

I’ve got a problem printing from qnx to a network printer over tcpip. The
printer has it’s own ip-address.
I tried like this:
Build printcap file
start lpd
If trying lpr file then qnx tells me: please start lpd. I did it before.
What’s wrong. It would be a pleasure someone could help me.
Perhaps you can tell me what there must be written in the printcap file and
how to start lpd.

Many thanks

Bettina

Bettina Getzkow wrote:

Hello,

I’ve got a problem printing from qnx to a network printer over tcpip. The
printer has it’s own ip-address.
I tried like this:
Build printcap file
start lpd
If trying lpr file then qnx tells me: please start lpd. I did it before.

Is syslogd running? If it is, look in the appropriate logs for error
messages.
If it isn’t running, set up /etc/syslog.conf the way you want
and try again.

You would also need to have the directory /usr/spool/lpd/.

What’s wrong. It would be a pleasure someone could help me.
Perhaps you can tell me what there must be written in the printcap file and
how to start lpd.

Many thanks

Bettina

Example:

create directory /usr/spool/output

having in /etc/hosts

192.168.145.1 nod1
127.0.0.1 loc localhost

put to /etc/hosts.lpd

loc
localhost
nod1

and to /etc/printcap

NET:
:rm=192.168.145.202:
:rp=raw:
:sd=/usr/spool/output/lpd:\

(put no spaces after )

Then in /etc/config/lpsrvr you can add queue:

[raw]
ta=local_lpt
co=cat $(spfile) | /usr/ucb/lpr -P NET

a print file

lp -P raw file

This is operational for me, but one problem persists:
Almost everytime when I check filesystem, chkfsys reports
corrupted filesystem on /usr/spool/output/lpd.lock.
In spite of the fact, printing is running normally. (?)

Andy

Bettina Getzkow wrote:

Hello,

I’ve got a problem printing from qnx to a network printer over tcpip. The
printer has it’s own ip-address.
I tried like this:
Build printcap file
start lpd
If trying lpr file then qnx tells me: please start lpd. I did it before.
What’s wrong. It would be a pleasure someone could help me.
Perhaps you can tell me what there must be written in the printcap file and
how to start lpd.

Many thanks

Bettina