Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-29-2003, 09:19 AM   #1
Registered: Sep 2003
Distribution: Mandrake9.1
Posts: 92

Rep: Reputation: 15
How do I send output to the printer?

Newbie nixer here, this is probably a simple question...

I'm having some problems with the latest nvidia drivers, and according to the nvidia readme, I need to read some stuff under the advanced options. The command I'm running is:

sh --advanced-options

The output from that scrolls by for a bit. How do I hold scrolling text to page length output? (I'm thinking back to the old dos days where I would add a /p and it inserted page breaks in)

How do I send that same output to the printer for a hard copy?

Old 09-29-2003, 10:01 AM   #2
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
To hold text, type:
| less
after the command. This sends it to the command less which scrolls through stuff.
To send it to the printer, use:
| lp
The pipe (|) can be used to send standard output to many places. For example, if you want to look for a particular pattern, you can pipe output to grep, e.g:
command | grep "hello"
will only show lines containing the text "hello" (not with speech marks). You can do multiple pipes to, so if you wanted to scroll, and output to a printer, you could do:
| less | lp
Which would pipe it to less, so you could read it one page at a time, and then send the output of that to the printer.
Hope that helps
Old 09-29-2003, 10:16 AM   #3
Registered: Sep 2003
Distribution: Mandrake9.1
Posts: 92

Original Poster
Rep: Reputation: 15
Prefecto! Thanks Guy...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Send string to std output without interpreting (script) ta0kira Programming 6 06-29-2005 08:50 AM
PHP : Send Data To Printer joseph Programming 1 04-07-2005 04:29 PM
Send output to seperate terminals? Brain Drop Programming 3 02-25-2005 10:44 PM
Can not send cron output to the screen tryingHarder Linux - Newbie 3 09-26-2004 10:11 PM
how to send the output to another xterm? abd_bela Programming 2 08-17-2003 12:28 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration