lppick

lppick


apcrash Index Level Performance Monitoring
Syntax lppick {-d} {-t level} {-s string} {-c command} {-l file.name}
lppick -v
lppick -V
Category Unix
Type Unix Shell
Description acts as a filter between the output of a Pick printer and the Unix spooler to implement shared printers.
The continuous data stream coming out of the Pick printer process is cut into separate Unix jobs. To do so, the data stream is scanned to find an 'End of job' string. Once a 'job' has been identified, a Unix command (typically 'lp') is invoked to process the data.
This command is normally called automatically by the TCL 'startshp' command.

"-d"
 Debug. Some information is displayed while data is processed. This option should be used only to diagnose problems. The (V) option of 'startshp' sets this flag.

"-s string"
 Specify 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. Non printable characters can be specified in octal, prefixed by a back slash '\'.

"-c command"
 Specify 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"
 Create a Unix file name when the filter is activated. This file contains the PID of the filter, the strings "command" and "string", separated by attribute marks. The 'startshp' command uses this option so that the TCL command 'shp-status' can keep track of the shared printers.

"-t level"
 Activate tracing on the printer activity. 'level' is an integer from 1 to 3 specifying the level of tracing. See the 'startshp' documentation to see the effect of this tracing. The -'t' option requires the '-l' option.

"-v"
 Display the version of the 'lppick' utility, as follows:
           lppick: Version X.Y

"-V"
 Display the version of the 'lppick' utility in a short form, for use in shells or FlashBASIC utilities, as follows:
            X.Y
Options
See Also startshp shp-status shp-kill
Example lppick -s "End of Job\377" -c "lp -s -onobanner"
Start the filter, with an end of job sequence equal to 'End of Job_', where '_' denotes a segment mark. The data will be passed to the Unix spooler suppressing all messages (-s) and the banner (-onobanner).
Warnings When specifying non-printable characters, be careful about the Shell escaping rules. Use single or double quotes as appropriate.

The '-l' option is supported only on version 2.0 and higher.

The '-v', '-V' and '-t' options are supported only on version 2.1 and higher.
Compatibility D3/Unix
apcrash Index Level Performance Monitoring