On Unix-like operating systems, the lp command prints files. Use a file name of " - " to specify printing from the standard input. If neither are set, the current default set using the lpoptions command is used, followed by the default set using the lpadmin command. Aside from the printer-specific options reported by the lpoptions command, the following generic options are available:. Print a text file with 12 characters per inch, 8 lines per inch, and a 1 inch left margin. Home Help Linux.
Solve printing problems on Mac
Command-Line Printing and Options
It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. To resume a job from command line I can call lpq which gives me the job number for example and then lp -i -H resume. Sign up to join this community. The best answers are voted up and rise to the top.
Add and remove/delete/ignore printers
When a printer is deleted via the Admin web interface, PaperCut MF retains the associated data for reporting. A request begins with a byte containing the request code, followed by the arguments to the request, and is terminated by an ASCII LF character. An LPD printer is identified by the IP address of the server machine and the queue name on that machine. Many different queue names may exist in one LPD server, with each queue having unique settings.
I have a short shell script fragment for you. It automatically reenables a printer queue on a CUPS printing server. CUPS takes different actions when a print job encounters a problem. The print server can be configured to follow the error policy "abort-job", "retry-job" or "stop-printer".