Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

whack(1) [linux man page]

WHACK(1)						      General Commands Manual							  WHACK(1)

NAME
whack - mangle requests to a printer or damage a printer SYNOPSIS
whack [-h | -v] [-i] [-w] ids whack [-j] [-v] [-s] [-w] printers DESCRIPTION
whack mangles line printer requests or damages line printers. When the first form of the command is used, the printed output of the job is mangled as specified by the options. When the second form of the command is used, the printer itself is damaged as specified by the options. OPTIONS
-h Horizontal. Make the output run across the page horizontally, ignoring linefeeds and other form movement characters or embedded commands. -v Vertical. Make the output run vertically in one column (the current column) down the paper, ignoring any form movement characters or embedded commands. -i ISO mode. Select, at random, a different ISO code set to use while printing the rest of the job. -w Write a taunting message on the user's terminal after the jobs have been whacked. If the user is not logged in locally, then mail will be sent instead. -j Jam. Self-explanitory. -v Voltage surge. Send a voltage spike down the transmit lead(s) of the printer. Physical contact with the printer should be avoided while using the -v option. -s Spit. Causes the printer to rapidly eject it's paper load into the output bin. Depending upon the speed of the ejection, a few characters could actually print on each page. FILES
/etc/termcap HISTORY
Written by Eric L. Pederson <eric@bofh.org.uk>. 28 September 1995 WHACK(1)

Check Out this Related Man Page

enable(1)							   User Commands							 enable(1)

NAME
enable, disable - enable/disable LP printers SYNOPSIS
/usr/bin/enable printer... /usr/bin/disable [-c | -W] [ -r [reason]] printer... DESCRIPTION
The enable command activates printers, enabling them to print requests submitted by the lp command. enable must be run on the printer server. The disable command deactivates printers, disabling them from printing requests submitted by the lp command. By default, any requests that are currently printing on printer will be reprinted in their entirety either on printer or another member of the same class of printers. The disable command must be run on the print server. Use lpstat -p to check the status of printers. enable and disable only effect queueing on the print server's spooling system. Executing these commands from a client system will have no effect on the server. OPTIONS
The following options are supported for use with disable: -c Cancels any requests that are currently printing on printer. This option cannot be used with the -W option. If the printer is remote, the -c option will be silently ignored. -W Waits until the request currently being printed is finished before disabling printer. This option cannot be used with the -c option. If the printer is remote, the -W option will be silently ignored. -r [reason] Assigns a reason for the disabling of the printer(s). This reason applies to all printers specified. This reason is reported by lpstat -p. Enclose reason in quotes if it contains blanks. The default reason is "unknown reason" for the existing printer, and "new printer" for a printer added to the system but not yet enabled. OPERANDS
The following operand is supported for both enable and disable: printer The name of the printer to be enabled or disabled. Specify printer using atomic name. See printers.conf(4) for information regarding the naming conventions for atomic names. EXIT STATUS
The following exit values are returned: 0 Successful completion. non-zero An error occurred. FILES
/var/spool/lp/* LP print queue. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpcu | +-----------------------------+-----------------------------+ |CSI |enabled | +-----------------------------+-----------------------------+ SEE ALSO
lp(1), lpstat(1), printers.conf(4), attributes(5) SunOS 5.10 9 Sep 1996 enable(1)
Man Page