8 Printer Environment Settings240PrintingSolaris/HP-UXThis section describes printing from workstations running Solaris or HP-UX. Refer tothe manuals supplied with the workstation for full details.Print (lp)The lp command is used for printing.Command formatlp [-d printer name] [-n number of copies] File nameCommand optionsThe following command options are available.• -d printer nameSpecify the printer name registered by the lpadmin command as the -d option. If thisoption is omitted, the default printer lp will be used.• -n number of copiesThis option specifies the number of copies. If one lp command is issued to print multiplefiles, the number of copies specified will apply to all the files. However, this is onlyeffective when the machine is in the spool mode. In the non-spool mode, the client mustbe a Windows NT machine to use this option.NOTE: Some options which are not listed here (e.g. -m option) and which are notprocessed by the workstation sending the print instructions, will not be valid.NOTE: In the spool mode, up to 32 files can be printed by one lp command. Any filesspecified after the 32nd file will be ignored.ExampleTo print a file named file1 to a printer named fxPS, enter the following command:%lp -dfxPS file1To output three copies of file1 and then three copies of file 2 to fxPS, enter the followingcommand:%lp -dfxPS -n3 file1 file2Delete (cancel)The cancel command is used to delete print data.Command formatcancel [printer name] [job number]Command optionsThe following command options are available.• Printer nameThis option specifies the printer name. The cancel command can be effectively usedwith the combined use of -a, -e and -u as shown below. This option is only valid in thespool mode.