[Gllug] Re: xsession-errors growing too large
Kostas Georgiou
k.georgiou at imperial.ac.uk
Wed Mar 7 12:13:28 UTC 2007
On Wed, Mar 07, 2007 at 12:04:22PM +0000, Jon Dye wrote:
> I thought that would be the case, I guess what I should have done was to
> truncate the file to 0 bytes rather than delete it which was my first
> thought. I couldn't think of a good way to do this though, I assumed
> there would be a simple command to do it (like touch) but I couldn't
> find one with apropos.
cat /dev/null > ~/.xsession-errors should do it.
You can probably still get rid of the file without restarting by finding
a process that has it open and do a cat again in /proc/[procid]/fd/[fd_of_file]
Kostas
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list