Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

hpset(1) [debian man page]

HPSET(1)							       LOCAL								  HPSET(1)

NAME
hpset -- printer commands SYNOPSIS
hpset [-hco] [commands ...] DESCRIPTION
hpset is used to send commands to a printer. These commands are synonyms for ESC Codes based on the PCL standard from Hewlet Packard. Options -c redirect output to stdout -oname redirect output into the specified file or device redirect -h prints a help message Commands back Puts every setting back to the printer defaults. test Starts the self test. out If paper is inside the printer it will be thrown out. cr activates the linefeed lbon acivates the linebreak. leftright forces the printer to print only from left to right. rightleft forces the printer to print only from right to left. bidirect forces the printer in both ways. execoff The following commands are not executed but printed. execon The following commands are executed. nice High quality printing. econo Enables fast and economic printing. landscape Printing in landscape format. portrait Printing in portrait format. lpinum Sets the lines per inch. For num use 6 or 8. The following commands must be sent in the given order and sequence. The sequence looks like, hpset [characterset] [characterdistance] [character density] [point size] [type position] [line strength] [type] -Characterset english ISO 4 ansi ANSI ASCII ISO 6 sweden ISO 10 italian ISO 15 spain ISO 17 german ISO 21 france ISO 69 -Characterdistance prop Proportional fix Fixed If you've chosen proportional you don't have to set the character density. -Characterdensity cpi# # is one of 5,6,10,12,16,16.67,20,24 -Pointsize point# # is one of 4.75,5,6,7,8,9.5,10,12,14,19,24 -Typeposition italic upright -Linestrength bold normal -Type courier times gothic univers Notice that not every combination of the commands above is possible. Refer to the manual of HPSET where you can find a table with allowed combinations. SEE ALSO
lpr(1), lpd(1), BUGS
report them to michael.janson@stud.uni-karlsruhe.de LINUX
April 27, 1997 LINUX

Check Out this Related Man Page

LPC(8)							    BSD System Manager's Manual 						    LPC(8)

NAME
lpc -- line printer control program SYNOPSIS
lpc [command [argument ...]] DESCRIPTION
lpc is used by the system administrator to control the operation of the line printer system. For each line printer configured in /etc/printcap, lpc may be used to: o disable or enable a printer, o disable or enable a printer's spooling queue, o rearrange the order of jobs in a spooling queue, o find the status of printers, and their associated spooling queues and printer daemons. Without any arguments, lpc will prompt for commands from the standard input. If arguments are supplied, lpc interprets the first argument as a command and the remaining arguments as parameters to the command. The standard input may be redirected causing lpc to read commands from file. Commands may be abbreviated; the following is the list of recognized commands. ? [command ...] help [command ...] Print a short description of each command specified in the argument list, or, if no argument is given, a list of the recognized com- mands. abort { all | printer } Terminate an active spooling daemon on the local host immediately and then disable printing (preventing new daemons from being started by lpr(1)) for the specified printers. clean { all | printer } Remove any temporary files, data files, and control files that cannot be printed (i.e., do not form a complete printer job) from the specified printer queue(s) on the local machine. disable { all | printer } Turn the specified printer queues off. This prevents new printer jobs from being entered into the queue by lpr(1). down { all | printer } message ... Turn the specified printer queue off, disable printing and put message in the printer status file. The message doesn't need to be quoted, the remaining arguments are treated like echo(1). This is normally used to take a printer down and let others know why lpq(1) will indicate the printer is down and print the status message. enable { all | printer } Enable spooling on the local queue for the listed printers. This will allow lpr(1) to put new jobs in the spool queue. exit quit Exit from lpc. restart { all | printer } Attempt to start a new printer daemon. This is useful when some abnormal condition causes the daemon to die unexpectedly, leaving jobs in the queue. lpq(1) will report that there is no daemon present when this condition occurs. If the user is the super-user, try to abort the current daemon first (i.e., kill and restart a stuck daemon). start { all | printer } Enable printing and start a spooling daemon for the listed printers. status { all | printer } Display the status of daemons and queues on the local machine. stop { all | printer } Stop a spooling daemon after the current job completes and disable printing. topq printer [ jobnum ... ] [ user ... ] Place the jobs in the order listed at the top of the printer queue. up { all | printer } Enable everything and start a new printer daemon. Undoes the effects of down. FILES
/etc/printcap printer description file /var/spool/output/* spool directories /var/spool/output/*/lock lock file for queue control DIAGNOSTICS
?Ambiguous command abbreviation matches more than one command ?Invalid command no match was found ?Privileged command you must be a member of group "operator" or root to execute this command SEE ALSO
lpq(1), lpr(1), lprm(1), printcap(5), lpd(8) HISTORY
The lpc command appeared in 4.2BSD. BSD
April 28, 1995 BSD
Man Page