lppick command

The lppick command filters between the output of a D3 printer and the UNIX spooler to implement shared printers. This command is called automatically by the TCL startshp command.

Syntax

lppick {-d} {-t level} {-s string} {-c command} {-l file.name} {-h string|file.name}
lppick -v
lppick -V

Parameter(s)

-d Debugs—Information displays while data is processed. This option should be used only to diagnose problems. The v option of the startshp command sets this flag.
-s string Specifies the end-of-job sequence. The default is a one character string x'04'. It is strongly advised to specify an alternate end-of-job sequence. Characters that cannot be printed are specified in octal, prefixed by a backslash.
-c command Specifies the UNIX command to use to spool data. This command must be able to accept data on its standard input. The default is lp.
-l file.name Creates a UNIX file name when the filter is activated. The file contains the PID of the filter, the strings "command" and "string", separated by an attribute mark. The startshp command uses this option so that the TCL command shp-status can keep track of the shared printers.
-h string|file.name Specifies the text to print at the top of a print job. The specified text can be explicitly typed (string) or can be the text in a UNIX file (referenced by the file.name). File names must be preceded by a period (.) for relative paths or by a forward slash (/) for absolute paths.
-t level Activates tracing on the printer activity. The level is an integer from 1 to 3 specifying the level of tracing.
Note: The -t option requires the -l option.
-v Displays the version of the lppick command as:
lppick: Version X.Y
-V Displays the version of the lppick command in short form, for example X.Y, for use in shells or FlashBASIC utilities.

Description

The continuous data stream coming out of the D3 printer process is cut into separate UNIX jobs. To cut the process, the data stream is scanned to find an "End of Job" string. Once a job has been identified, a UNIX utility (typically lp) is invoked to process the data.

Example(s)

lppick -s "End of Job\377" -c "lp -s -onobanner"

Starts the filter with an end-of-job sequence equal to:

End of Job_ 

where the underscore denotes a segment mark. The data is passed to the UNIX spooler suppressing all messages (-s) and the banner (-onobanner).