Scroll to navigation

LP5250D(1) General Commands Manual LP5250D(1)


lp5250d - start an AS/400 printer session


lp5250d [OPTIONS] host[:port]
lp5250d -version


lp5250d connects to an AS/400 over TCP/IP and provides a printer session emulating an IBM 3812 printer. The printer session works with scs2ascii and host print transform on the AS/400 to print AS/400 spooled files on a local printer.

To end a printer session, send it a SIGTERM signal with kill(1).

Printing support requires named session support, which is available for most recent versions of OS/400, but is only supplied with V4R3 and later versions. For V3R2, V3R7, V4R1 and V4R2, please see informational APAR II10918.


Log all lp5250d actions to tracefile. This file will get very large.
Set the translation table between ASCII and EBCDIC. This should match the normal CCSID of the AS/400. The default for lp5250d is 37.

See Translation Maps in tn5250(1) for a list of supported values.

Set the device name for the AS/400 to assign to the 5250 session. This should be up to ten characters long and consist of only letters and numbers. It will be converted to uppercase and used as the name of the 5250-compatible device on the AS/400. There may only be one session active with any given name at one time.
Set the command that will be receive printer output. The default command is `scs2ascii |lpr'.
Set the name of the host print transform description to use on the AS/400. This is the same as the MFRTYPMDL parameter on the CRTDEVPRT command. See the CL Reference or the online help for a list of valid values.
Set any other environment variables controlling the printer session. A list of relevant variables is given in section 7 of RFC2877. More generally, the variables are the parameters of the CRTDEVPRT command, with a prefix of IBM.
Display the version of lp5250d and exit.


Connect to as400sys as the printer LINPRT1, using host print transform on the AS/400 to print to an HP Laserjet or compatible using lpr.
Print to an Okidata Microline 184 Turbo on the local print queue named `oki'.
Convert spooled files info PostScript® files.


Please report any bugs you find to the bug tracker or to the linux5250 mailing list. See the tn5250 web site for more details.


tn5250(1), scs2ascii(1), scs2ps(1),, RFC1205, RFC2877, II10918.


tn5250 is copyright 1997 - 2001 Michael Madore. This manpage is copyright 1999 - 2001 Carey Evans.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


PostScript is a trademark of Adobe Sysems Incorporated.


tn5250 was written by Michael Madore, Jay Felice and others; see the AUTHORS file for details. This manual page was written by Carey Evans.

30 Aug 2001