wpr3287 Manual Page
Contents
Name
Synopsis
Description
Options
Environment
Proxy
See Also
Copyrights
Version
Name
wpr3287 -
IBM
host printing tool
Synopsis
wpr3287
[ options ]
[ L: ] [[ LUname [, LUname ...]@] hostname [: port ]]
Description
wpr3287
opens a telnet connection to an
IBM
host, and emulates an IBM 3287 printer.
It implements RFCs 2355 (TN3270E), 1576 (TN3270) and 1646 (LU name selection).
If the hostname is prefixed with L:, the connection will be made
through an SSL tunnel.
wpr3287 also supports TELNET START-TLS option negotiation without any
need for command-line options.
A specific LU name to use may be specified by prepending it to the
hostname
with an
`@'.
Multiple LU names to try can be separated by commas.
An empty LU can be placed in the list with an extra comma.
The port to connect to defaults to
telnet.
This can be overridden by appending a
port
to the
hostname
with a colon
`:'.
Options
wpr3287
understands the following options:
- -assoc LUname
-
Causes the session to be associated with the specified
LUname.
- -blanklines
-
In LU3 formatted mode, print blank lines even if they are all NULLs or control
characters.
(This is a violation of the 3270 printer protocol, but some hosts require it.)
- -charset name
-
Specifies an alternate EBCDIC-to-ASCII mapping.
The default maps the EBCDIC U.S. English character set to ISO 8859-1.
Other built-in character sets include bracket, which corresponds to
many older IBM hosts' mapping of the [ and ] characters,
and the non-U.S. character sets german, finnish, uk,
norwegian, french, icelandic and belgian.
These correspond to the x3270 character sets of the same names.
- -nocrlf
-
Causes newline characters in the output to be left as-is, and not expanded to
carriage-return/linefeed sequences.
- -eojtimeout seconds
-
Causes wpr3287 to flush the print job after seconds seconds
of inactivity.
- -ignoreeoj
-
Ignore TN3270E PRINT-EOJ commands, relying on UNBIND commands to indicate
the ends of print jobs.
- -ffskip
-
Causes wpr3287 to ignore a FF (formfeed) order if it occurs
at the top of a page.
- -ffthru
-
In SCS mode, causes wpr3287 to pass FF (formfeed) orders through to the
printer as ASCII formfeed characters, rather than simulating them based on the
values of the MPL (maximum presentation line) and TM (top margin) parameters.
- -printer printer
-
Specifies the Windows printer to use for each print job.
The default is to use the printer specified by the $PRINTER environment
variable, if defined, and otherwise to use the default Windows printer.
- -printercp codepage
-
Specifies the code page to use when generating printer output.
The default is to use the system ANSI code page.
The printer can be the name of a local printer, or a UNC path to a remote
printer, e.g., \\server\printer1.
- -proxy type:host[:port]
-
Causes wpr3287 to connect via the specified proxy, instead of
using a direct connection.
The host can be an IP address or hostname.
The optional port can be a number or a service name.
For a list of supported proxy types, see PROXY
below.
- -reconnect
-
Causes wpr3287 to reconnect to the host, whenever the connection is
broken.
There is a 5-second delay between reconnect attempts, to reduce network
thrashing for down or misconfigured hosts.
- -trace
-
Turns on data stream tracing.
Trace information is usually saved in the file
x3trc.pid.txt.
- -trnpre file
-
Specifies a file containing data that will be sent to the printer before each
print job.
The file contents are treated as transparent data, i.e., they are not
translated in any way.
- -trnpost file
-
Specifies a file containing data that will be sent to the printer after each
print job.
The file contents are treated as transparent data, i.e., they are not
translated in any way.
- -v
-
Display build and version information and exit.
Environment
- PRINTER
-
Specifies the Windows printer to use for print jobs.
The -printer command-line option overrides $PRINTER.
Proxy
The -proxy option
causes wpr3287 to use a proxy server to connect to the host.
The syntax of the option is:
type:host[:port]
The supported values for type are:
Proxy Type | Protocol | Default Port |
http | RFC 2817 HTTP tunnel (squid) | 3128 |
passthru | Sun in.telnet-gw | none |
socks4 | SOCKS version 4 | 1080 |
socks5 | SOCKS version 5 (RFC 1928) | 1080 |
telnet | No protocol (just send connect host port) | none |
The special types socks4a and socks5d can also be used to force
the proxy server to do the hostname resolution for the SOCKS protocol.
See Also
wc3270(1)
Data Stream Programmer's Reference, IBM GA23-0059
Character Set Reference, IBM GA27-3831
3174 Establishment Controller Functional Description, IBM GA23-0218
RFC 1576, TN3270 Current Practices
RFC 1646, TN3270 Extensions for LUname and Printer Selection
RFC 2355, TN3270 Enhancements
Copyrights
Modifications Copyright © 1993-2008 by Paul Mattes.
Original X11 Port Copyright © 1990 by Jeff Sparkes.
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation.
Copyright © 1989 by Georgia Tech Research Corporation, Atlanta, GA 30332.
All Rights Reserved. GTRC hereby grants public use of this software.
Derivative works based on this software must incorporate this copyright
notice.
Version
wpr3287 3.3.8
This HTML document and the accompanying troff document were generated with
a set of write-only m4 macros and the powerful vi editor.
Last modified 11 October 2008.