LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-29-2003, 10:19 AM   #1
Toker
Member
 
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 NVIDIA-Linux-x86-1.04496-pkg2.run --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?

Thanks!
 
Old 09-29-2003, 11:01 AM   #2
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 35
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
Guy
 
Old 09-29-2003, 11:16 AM   #3
Toker
Member
 
Registered: Sep 2003
Distribution: Mandrake9.1
Posts: 92

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


Reply


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 09:50 AM
PHP : Send Data To Printer joseph Programming 1 04-07-2005 05:29 PM
Send output to seperate terminals? Brain Drop Programming 3 02-25-2005 11:44 PM
Can not send cron output to the screen tryingHarder Linux - Newbie 3 09-26-2004 11:11 PM
how to send the output to another xterm? abd_bela Programming 2 08-17-2003 01:28 PM


All times are GMT -5. The time now is 12:38 AM.

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