2
votes
2answers
118 views

Print text from terminal

I would like to use a Linux distro without a desktop environment, but I need to print out homework that I type up. I could always email it to myself and print from another computer, but it would be ...
2
votes
1answer
85 views

List All Network Printers (including ones not installed)

It is easy to list the printers you've already installed with this command: lpstat -a However, this does not list network printers you have NOT installed. nmap will scan for all open ports on the ...
3
votes
1answer
104 views

Specify MIME type to CUPS's lpr command

It seems when you pass a file to lpr (or pipe to it), it attempts to guess the MIME type. Sometimes, however, it guesses wrong—and then attempts to print something "interesting" at best. Is there a ...
4
votes
2answers
127 views

printing .cpp file from command line using emacs

The goal is to print a set of *.cpp files on a network printer, but... in a way that the (color) printer prints the files like they appear in the c++ editor including the colors and highlighting. And ...
1
vote
1answer
296 views

View all user's printing jobs from the command line

I'm running Fedora 17, Gnome (3?), and using bash from terminal. Whenever I run lpstat I only get a list of my jobs, but every time I go to retrieve my jobs from the printer, somebody else is ...
1
vote
3answers
319 views

Automatically printing images with added captions

I have a lot of scanned images and images/photos I'm working on with multiple versions. When I print them (using various programs), all I get is the image and, often, it's difficult to tell which ...
2
votes
2answers
2k views

Get list of installed printers

Inside of a script I send a certain file to print using the lpr command on an user-selected printer. The list of the printers, from which the user selects the one to use, I get using the lpstat -a ...
6
votes
3answers
2k views

How can I print good looking code

Similar to using markdown on Stack Overflow to create monospace output, how can I do that for my programs. I tried lp filename.txt and was pleasantly please to find that it was able to use the local ...
6
votes
2answers
2k views

What is “Print to File” and can it be used from command line?

When you select "Print to File" in a Gnome print dialog (not cups-pdf): ... what is the actual command that gets executed? (I'm interested in the postscript variant, as on the image) On the other ...
9
votes
3answers
432 views

syntax_highlight <source_file> | lpr

Does anyone know of a simple way to produce the PostScript corresponding to a syntax-highlighted version of a source file that can be piped directly to a PostScript printer? As the wording of the ...
1
vote
3answers
3k views

How to kill a printing job on centOS

How does one kill a printing job on centOS?
6
votes
3answers
1k views

Print an SVG from the command line

How can I print an SVG, already scaled to a4 size, from the command line? I tried using lpr, but instead the printer just printed out the actual XML of the file, which isn't what I wanted.