SPLP(8,C) AIX Commands Reference SPLP(8,C)
-------------------------------------------------------------------------------
splp
PURPOSE
Changes or displays printer driver settings.
SYNTAX
+----------------+ +--------------------------+ +- /dev/lp -+
splp ---| +------------+ |---| one of one of |---| |---|
+-| indent=num |-+ | +---+ 1 +--------------+ | +- device --+
^| width=num || +-| + |---| fontinit bs |-+
|| length=num || ^| - | | parenb ff ||
|| timer=num || |+---+ | parodd tb ||
|| csn || | | sync cr ||
|| speed || | | cstopb nl ||
|+------------+| | | wrap cap ||
+--------------+ | | plot err ||
| +--------------+|
+------------------------+
-----------------
1 Do not put a blank between these items.
Warning: See restrictions, Chapter 18, AIX Programming Tools and Interfaces.
DESCRIPTION
The splp command changes or displays settings for a printer driver (device).
The default device is /dev/lp0. If you do not specify any flags, splp reports
the current settings for the specified device. Select flags to change the
current settings. No other processing is done, and there is no other output.
The changes that splp makes remain in effect until the next time you restart
the system or rerun splp. You can run splp from the /etc/rc command file to
configure your printer each time you startup the system.
Note: When the print command is used with the backend piobe, splp is set as
+plot. Any parameters set by the user are ignored. If a file is
redirected using the cat command instead of the print command, the splp
settings are active.
FLAGS
Processed November 8, 1990 SPLP(8,C) 1
SPLP(8,C) AIX Commands Reference SPLP(8,C)
timer=num Sets the time out period to num seconds, where num is
an integer.
indent=num Indents num columns, where num is an integer.
length=num Prints num lines per page, where num is an integer.
width=num Prints num columns, where num is an integer
+bs (lpr-bs) Sends (does not send) backspaces to the printer.
+cap (lpr-cap) Converts (does not convert) all lowercase characters to
uppercase.
+cr (lpr-cr) Sends carriage returns (translates carriage returns to
carriage return - line feeds).
+cstopb (lpr-cstopb) Selects 2 (1) stop bits per character.
cs5 cs6 cs7 cs8 Selects character size. See termio in AIX Operating
System Technical Reference for additional information
on character size.
+err (lpr-err) Issues (does not issue) a signal (SIGIOINT) upon
receiving a error and attempts to resume I/O.
+ff (lpr-ff) Sends form feeds (simulates a form feed with line feeds
or carriage returns).
+fontinit (lpr-fontinit)
Indicates that fonts are (are not) loaded. Use this
flag to control the initialization of fonts for the
3812 Pageprinter.
+nl (lpr-nl) Sends line-feeds (translates line feeds to line feed -
carriage returns).
+parenb (lpr-parenb) Enables (disables) parity generation and detection.
+parodd (lpr-parodd) Selects odd (even) parity.
+plot Sends all characters to the printer unmodified. This
overrides other settings.
-plot Translates characters according to the settings.
+sync (lpr-sync) Does not (does) return immediately without waiting for
all data to be sent out.
+tb (lpr-tb) Expands (does not expand) tabs on eight position
boundaries.
Processed November 8, 1990 SPLP(8,C) 2
SPLP(8,C) AIX Commands Reference SPLP(8,C)
+wrap (lpr-wrap) Wraps (truncates) characters beyond the specified width
to the next line and (with +wrap), prints "..." before
the new-line character.
50 75 110 134 150 300 600 1200 1800 2400 4800 9600 exta extb
Sets the speed to the specified number of bits per
second (exta is 19200).
EXAMPLES
1. To display the current printer settings:
splp
2. To change the printer settings:
splp width=80 +wrap +cap
This changes the settings of the /dev/lp printer for 80-column paper
(width="80"). It wraps each line that is more than 80 columns wide onto a
second line (+wrap), and prints all alphabetic characters in uppercase
(+cap).
RELATED INFORMATION
See the following command: "qdaemon, lp."
See the lp file in AIX Operating System Technical Reference.
Processed November 8, 1990 SPLP(8,C) 3