LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-02-2005, 12:01 PM   #1
mentallo
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Rep: Reputation: 0
Printing from the console?


I need to print error messages from the console (I cant get into the GUI).
How can I print the error messages?

(Im a newbie)

Thanks
M
 
Old 12-02-2005, 12:33 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,983

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
You can capture the error messages when you run a specific command to a text file by running :

$ [command] > error.txt

That will create the text file, error.txt. To print that from the command line run:

$ cat error.txt | lpr

Last edited by kilgoretrout; 12-02-2005 at 12:34 PM.
 
Old 12-02-2005, 02:40 PM   #3
mentallo
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, much appreciated.

G
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
printing on the console balu14u Programming 5 04-06-2005 05:35 AM
Printing image from console theonebeyond Linux - Software 2 10-27-2004 04:36 AM
How to Run Win32 Console App in linux Console Lokie Linux - Software 2 08-12-2004 10:00 PM
Stop error messages from wireless card from printing on console robertgparker Linux - Newbie 3 07-27-2004 09:29 AM
Scribus Printing How to put 4 flyers on a page when printing jazzboy Linux - Software 0 05-02-2004 06:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:41 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration