printx25(1)

Name

printx25 - route incoming data to the printer

Syntax

printx25 device_name [lpr_arguments]

Description

This program is invoked by the X25daemon to route all incoming data to a temporary file, then lpr is execed with stdin set to the temporary file. When lpr exits, the temporary file is removed.

It accesses the X25 virtual circuit using the X.25 API. This allows it to read packets instead of a data stream. Only printable characters are sent to the file.

When invoked the first argument to this routine is the name of the minor device that the incoming call is on. The daemon does not accept the incoming call, as this program must examine the incoming call to determine the packet size.

stdin, stderr, and stdout are not open when this program is invoked by the X25daemon.

To get this program invoked specify it as entry in the /etc/x25incalls file, a possible entry is:

CUD=\1\0\0\0PR:PASS:API:YES:/usr/lib/x25/utils/printx25 $dev -dprinter
This will route all incoming calls containing ITI call user data followed by ASCII PR to this program.

See Also

xprint and Running A Remote Printer Over An X.25 Virtual Circuit in the Application Notes.


Revision 1.1 (January 2002)

Copyright © 1997-2002 The Software Group Limited. All Rights Reserved.
® Netcom is a registered trademark of The Software Group Limited.