[Lvlug] Printing Questions: command to print to a remote printer,
formatting a plain text file
mstanley at technologist.com
Tue Jul 5 08:12:50 EDT 2005
Randy Kramer wrote:
> 1. The command that nedit uses to print to a local printer is:
> lpr -J "<filename>"
> I'd like to print to a printer on another computer (printing to that other
> printer works from things like konqueror, but I don't see the print command
> that konqueror uses)--any idea where to find the command that would work in
> nedit for that other printer? (The printer on the other computer uses cups
> (and maybe samba?).)
kprinter is what you are looking for. Replace lpr -J "<filename>" with
just kprinter and you will get the KDesktop printer dialog.
> 2. Back in the (my) "good ol dos" days, there were several printer utilities
> available that would do things like take a plain text file, and, for example,
> add margins, page numbers, and (automatic) headers and/or footers that might
> include the file name, date printed, and similar. Can anyone point me to
> some similar things in Linux? (As with the first question, I'd like to do
> most of my printing to a remote printer.)
Once you are using kprinter you can dig through the printer settings for
whichever printer you are using and tell it to set headers and footers
and such on any file including text files.
More information about the Lvlug