PCMD

Print command

 

 

USupported on UNIX

 

The PCMD environment variable specifies a print command and causes all LPQUE options to be ignored.

A command that LPQUE uses in place of the standard System V print command (for example, “lp”).

If you don’t have a printer connected but you want to test your programs, you can set PCMD equal to “cat,” and LPQUE will send your output to your terminal. (We recommend, however, that you use system option #22 and dblpq.)

System option #22 overrides PCMD.

The environment.

Runtime

PCMD="lpr -q hp-laserjet"  ;export PCMD

Using this example, the statement

lpque(prog.dbl)

produces the following command:

lpr -q hp-laserjet prog.dbl