LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-26-2006, 04:13 AM   #1
yilez
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 127

Rep: Reputation: Disabled
Backing up .xsession-errors


How would I get a Linux Distro, such as Mandriva 2005, to make a copy of .xsession-errors?

I tried putting

cp $HOME/.xsession-errors $HOME/debug

into /etc/X11/Xsession, but that just creates a blank file.

I'm sure I've done this before, I just don't remember how.
 
Old 05-26-2006, 06:07 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You might try putting the cp command you tried in ~/.bash_logout instead. Then you'ld have a backup of .xsession-errors from the last session.

Take a look at "lsof ~/.xsession-errors". A number of programs write to it in the style of ">> ${HOME}/.xsession-errors".

You can also have a terminal open and run "tail ~/.xsession-errors".

If you use "cp" command in .bash_logout, consider using a --backup option so you have a backup from each session.

Last edited by jschiwal; 05-26-2006 at 06:12 PM.
 
Old 05-27-2006, 06:27 AM   #3
yilez
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 127

Original Poster
Rep: Reputation: Disabled
Cheers, I'll give that a go.
 
  


Reply



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
~/.xsession-errors Phiebie Debian 2 12-21-2004 09:00 AM
.xsession-errors caphead Debian 5 10-11-2004 07:52 AM
insight into .xsession-errors kodon Slackware 4 08-29-2004 04:29 AM
xsession errors DB Troll Linux - General 0 07-15-2003 11:09 PM
.xsession-errors DeadPuddle Linux - General 3 05-31-2002 11:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:51 PM.

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