[Gllug] Re: xsession-errors growing too large
Jon Dye
jon at pecorous.co.uk
Wed Mar 7 12:27:12 UTC 2007
Kostas Georgiou wrote:
> 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.
Thanks, I'll try that next time.
> 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]
Although presumably if I don't restart and the offending program fills
up the file again I will have a hard job finding where the space has
gone because the file no longer has a name?
JD
--
"Hey Chocolate biscuits, customers always right. Chocolate biscuits,
pilot, 6 years training, chocolate biscuits.."
- Eddie Izzard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20070307/57a69b66/attachment.pgp>
-------------- 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