Compaq 5531 Printer User Manual


 
Direct Printing Without Spooler
157
npwrite
The data transfer program npwrite is provided with the host software
shipped with your 5525B/31/32 Internal Ethernet Network printer. It
sends data to the printer over a TCP connection. Data is read from a file
or, if no file is specified, from standard input. The format of the data is
not altered by this program; be certain it is in print-ready format.
This syntax for npwrite is as follows:
npwrite
ipname portname
[
filename
]
Where:
ipname
Internal Ethernet Adapter IP name or IP address
portname
I/O port on the Internal Ethernet Adapter (i.e. prn)
filenames
[optional] File name(s) to be printed. If no filename is
specified, data is read from standard input.
For example:
npwrite 192.75.11.32.prn testfile.txt
cat testfile.txt | npwrite 192.75.11.32.prn
where 192.75.11.32 is the Internal Ethernet Adapter’s IP address.
If the npwrite binary is not available on your machine, use rsh/rchmd/
remsh instead.
rsh/rcmd/remsh
The rsh/rchmd/remsh programs are remote command execution
clients that talk to the rshd server in the Internal Ethernet Adapter. rsh,
rcmd, and remsh are the same programs but have different names on
different UNIX systems.
The Internal Ethernet Adapter provides lp, lpstat, and cancel program
for print services through the rshd server. The lp command reads data
from the standard input and sends it to the specified port as follows:
on SCO UNIX, use either of the following:
rcmd spike lp -d d1prn < testfile.txt
cat testfile.txt | rcmd spike lp -d d1prn
On Sun UNIX
rsh spike lp -d d1prn < testfile.txt
cat testfile.txt | rsh spike lp -d d1prn