HP (Hewlett-Packard) M208 Switch User Manual


 
CONFIGURING THE M208 FOR TCP/IP: Host Configuration 43
file is specified, from standard input. The format of the data is not altered by this pro-
gram so make sure it is in printer-ready format.
The syntax for npwrite is:
npwrite
ipname portname
[
filenames
]
where:
ipname M208 IP name or IP address.
portname I/O port on the M208 (i.e. prn, com1, com2).
filenames [optional]. Filename(s) to be printed. If no filename is specified, data
is read from standard input.
npwrite 192.75.11.32 prn testfile.txt
npwrite spike com2 testfile.txt
cat testfile.txt | npwrite 192.75.11.32 prn
where spike and 192.75.11.32 are the M208’s IP name and IP address.
For more information on npwrite, please refer to the online manual pages. If the
npwrite binary is not available for your UNIX machine, use rsh/rcmd/remsh instead.
rsh/rcmd/remsh
The rsh/rcmd/remsh programs are remote command execution clients that talk to the
rshd server in the M208. rsh, rcmd, and remsh are actually the same programs but
have different names on different UNIX systems; some systems may even have
another name for remote command. Enter man rshd to display the online manual
pages for information on the remote shell server for your version of UNIX.
The Print Server provides lp, lpstat, and cancel programs for print services through
the rshd server. The lp command reads data from standard input and sends it to the
specified port as follows:
on SCO UNIX, either of the following:
rcmd spike lp -d d1prn < testfile.txt
cat testfile.txt | rcmd spike lp -d d1prn
Syntax
Example
Example