LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Printing from the console? (https://www.linuxquestions.org/questions/linux-software-2/printing-from-the-console-388655/)

mentallo 12-02-2005 12:01 PM

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

kilgoretrout 12-02-2005 12:33 PM

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

mentallo 12-02-2005 02:40 PM

Thanks, much appreciated.

G


All times are GMT -5. The time now is 03:30 PM.