LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Write Error Log to Text File (https://www.linuxquestions.org/questions/linux-general-1/write-error-log-to-text-file-460346/)

jamez15 07-02-2006 03:03 PM

Write Error Log to Text File
 
I've got a problem. After i install debian everything seems to go well. I'm presented with a black screen. I know i have to install x-window and gnome or kde to get the graphical user interface. So i used the apt-get install command to install x-windows, gnome and kde.

Now here's where my problem comes. As soon as i type startx to get GUI going the monitor turns black for a few seconds and then returns to the previous text interface. It also throws out a whole bunch of errors. Too many for me to write down because they are not all displayed on screen.

So my question is as follows is there any way with commands to start x-window and tell it to create a text file with all of errors it encounters. That way i can post it up and you guys can help me to get it going correctly.

If there isn't any way to have it automatically write the error log what's the work around???

Thanks in advance
James

binary_y2k2 07-02-2006 03:08 PM

use the script command to make a log of all the output
Code:

script
startx
(errors ... ...)
exit

the log file will be in ~/typescript

FreeDoughnut 07-02-2006 04:46 PM

startx > log
You don't need to make a script!

cs-cam 07-02-2006 07:32 PM

/var/log/Xorg.0.log not good enough for you all? Another option:
Code:

startx 2> xorg.tmp.log
As opposed to FreeDoughnut's solution, this one will only capture stderr output where as > will only capture stdout which probably won't contain any errors. If you wants both then use &>.


All times are GMT -5. The time now is 07:06 AM.