Emulex NQTR0V-NATM User Manual

Page 114

Advertising
background image

UNIX TCP/IP 4-11

3) Edit the file ENVIRON.H to reflect the appropriate system type.

Typical system parameters for Sun Sparc Stations are:

>

#define SOCK 1

>

#define SYSV 0

>

#define LING 1

>

#define ROBUST 1

4) Enter:

>

#cc rprint.c -o rprint

This compiles and links RPRINT.C.

NOTE: The compile command can vary greatly on different

systems. If the compile command fails, check your
host documentation for the correct syntax and
libraries to include for SOCKETs programming.

5) Create a dummy device file for the remote printer.

>

#mknod /dev/printer_name c 3 2

>

#chown daemon /dev/printer_name

>

#chmod 666 /dev/ printer_name

NOTE: Some systems may also require a chgrp command.

Refer to your system manual for more information.
Major and minor numbers used in the mknod
command may differ as well. Use the same major
and minor numbers found in the /dev/null file.

Advertising
This manual is related to the following products: