Compaq 5532 User Manual

Page 167

Advertising
background image

npd Pseudo-device Interface

167

Starting the npd daemon is all that is needed to utilize npd. Integrating
any special applications can be done anytime thereafter.

Use the following syntax to start npd:

npd

devicefile ipname portname

where

:

devicefile

Name for a pseudo-tty pair’s slave device acquired by
npd

ipname

Internal Ethernet Adapter IP name or IP Address

portname

Internal Ethernet Adapter I/O port name (i.e. prn)

NOTE: The

devicefile

cannot exist prior to starting npd and this

particular npd daemon cannot be running already. You can
have more than one daemon running on the same host, as long
as they are not using the same

devicefile

.

npd /dev/spike.prn spike prn

starts an npd daemon utilizing

/dev/spike.prn

to send print jobs to

the printer attached to the parallel port on the Internal Ethernet Adapter
named spike.

By default, npd looks in the /dev directory to find a free pseudo-tty pair
(/dev/pty?? and /dev/tty?? files). If your UNIX system has these files in
a different directory, you can specify the directory pathname with a -p
option.

npd -p /dev/pty /dev/spike.prn spike prn

where /dev/pty is the directory to be searched for a free pseudo-tty pair.
Some systems, such as HP-UX, place the master and slave devices in
separate directories (i.e. /dev/ptym and /dev/pty). Specify where each
of the pairs reside with the -pm and -ps options.

npd -pm /dev/ptym -ps /dev pty /dev/spike.prn spike prn

where /dev/ptym is the directory searched to find a free pseudo-tty
pair’s master device and /dev/pty is the directory used for locating the
pseudo-tty pair slave device.

Advertising
This manual is related to the following products: