lpcover - emulate LP

# NAME

lpcover - emulate LP

lpstatc - emulate LPSTAT

cancel - emulate CANCEL

# SYNOPSIS

lpcover [ -options ] [ file ... ]

lpstatc [ -options ]

cancel jobnumber [ ... ]

# DESCRIPTION

lpcover may be used instead of the standard lp command. It converts the options that most lp commands take to the equivalent `spr(1)` commandds and then invokes `spr(1)` to submit the print jobs.

The spr program provides a much greater set of facilities than lp. Although it is strongly recommended to switch to the `spr(1)` command to take advantage of these, they can be made available to users of our lpcover command. This is done by setting up `SPOOLOPTS` in the application or user environment.

Lpcover is usually installed in place of lp in /usr/bin, with the original binary moved to something like old.lp in the same directory.

Lpstatc emulates lpstat as far as is practicable, generating a report of outstanding print jobs from the print queue in a format similar to the original lpstat.

cancel is a shell script which invokes `sqdel(1)` on its arguments.

# OPTIONS

The options below document lpcover only. Options to lpstatc generate a warning message on standard error and are otherwise ignored. Options to lpcover which are not documented here are ignored.

-c

  This has no effect, but generates a warning message on standard error, as with GNUspool spool files are always copied.

-d name

  Specify printer destination as name. The destination may also be specified in the environment variable `LPDEST`, which this option overrides. An argument of `any` to -d cancels any existing `LPDEST` environment variable.

  This is translated directly into a -P option to spr.

-f form

  specifies the supplied form type. This is translated directly into an -f option to spr.

-H arg

  There is no direct mapping for the -H argument.

-m

  Mail user. This is translated directly into an -m option to spr.

-n n

  Specify the number of copies. This is translated directly into a -c option to spr.

-o arg

  Only -o `nobanner`, to suppress the header page, is interpreted and translated to the -s option to spr.

-P arg

  This is translated into -R page range arguments for spr.

-q n

  This is translated into a -p argument for spr scaled appropriately, taking into account the user's maximum, minimum and default priorities.

-S

  This option is ignored.

-s

  This turns off the -v argument for spr which is normally included.

-T

  This option is ignored.

-t <arg>

  This is translated to a -h (title) argument to spr.

-w

  This is translated directly to the -w (write message) option to spr.

-y

  This option is ignored.

# ENVIRONMENT

LPDEST

  Specify destination for lpcover.

LPSTATFMT

  Specify alternate format for lpstatc.

# DIAGNOSTICS

Various warnings about unimplemented features are printed by lpcover and lpstatc.

Others may be generated by software each invokes.

# AUTHOR

John M Collins, Xi Software Ltd.