printing from bash terminal
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat Topics > printing from bash terminal




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    printing from bash terminal  
Anthony Galea


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-11-05 07:46 AM

Hi all. Sorry to be such a bother. I am an absolute newbie to Linux
and have managed to successfully install Fedora Core 4 on my second
hard drive.

I have also managed to get CUPS to find my printer. But I have no
success in getting the lp or the lpr command to work when I want to
print man pages or anything else from my bash shell.

Does anybody have any suggestions? I have read that Red hat use the
printtool but when i try to get that running it just comes up with
error messages.

Any help greatly appreciated.

Thank you all

Tony





[ Post a follow-up to this message ]



    Re: printing from bash terminal  
Lenard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-11-05 12:45 PM

Anthony Galea wrote:

> Hi all. Sorry to be such a bother. I am an absolute newbie to Linux
> and have managed to successfully install Fedora Core 4 on my second
> hard drive.
>
> I have also managed to get CUPS to find my printer. But I have no
> success in getting the lp or the lpr command to work when I want to
> print man pages or anything else from my bash shell.

What step have you taken?? Where is your printer??  Is it a network
printer attached to a Windows system?? Please explain.

> Does anybody have any suggestions? I have read that Red hat use the
> printtool but when i try to get that running it just comes up with
> error messages.

Which are??


> Any help greatly appreciated.

If CUPS is installed and configured correctly the all you need to do is
type something like; lpr filename

Printing a man page can be done by typing the following two lines for
example;

man lpr > lpr.txt
lpr lpr.txt

Please review;
http://www.catb.org/~esr/faqs/smart-questions.html


--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."     -- B. Franklin, 1759





[ Post a follow-up to this message ]



    Re: printing from bash terminal  
Ivan Marsh


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-11-05 10:47 PM

On Mon, 11 Jul 2005 12:18:58 +0000, Lenard wrote:

> Anthony Galea wrote:
> 
>
> What step have you taken?? Where is your printer??  Is it a network
> printer attached to a Windows system?? Please explain.
> 
>
> Which are??
>
> 
>
> If CUPS is installed and configured correctly the all you need to do is
> type something like; lpr filename
>
> Printing a man page can be done by typing the following two lines for
> example;
>
> man lpr > lpr.txt
> lpr lpr.txt

Could you not also: man lpr | lpr
?

--
"Blessed is he who expects nothing, for he shall never be disappointed."
Benjamin Franklin (I didn't know he was a Buddhist)






[ Post a follow-up to this message ]



    Re: printing from bash terminal  
Lenard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-12-05 01:45 AM

Ivan Marsh wrote:
 
>
> Could you not also: man lpr | lpr
> ?

Yes, but it's (also) nice to reformat the paging to make reading the
text easier. For example, using the manpage for lpr the COMPATIBILITY
section starts on the printed page one with the bold section header
along with the first line. Then on the second printed page the second
line of the section, with some printers. I perfer to add a couple of
line feeds and have the COMPATIBILITY section all on one page.


--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."     -- B. Franklin, 1759





[ Post a follow-up to this message ]



    Re: printing from bash terminal  
Scott Lurndal


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-13-05 01:47 AM

Lenard <Lenard@127.0.0.1> writes:
>Ivan Marsh wrote:
> 
>
>Yes, but it's (also) nice to reformat the paging to make reading the
>text easier. For example, using the manpage for lpr the COMPATIBILITY
>section starts on the printed page one with the bold section header
>along with the first line. Then on the second printed page the second
>line of the section, with some printers. I perfer to add a couple of
>line feeds and have the COMPATIBILITY section all on one page.
>

Even better:

$ zcat /usr/share/man/man1/lpr.1.gz | groff -man | lp -d printer1

scott





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:41 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register