[ubuntu] hard-drive fills up with xsession-error data

view story

http://ubuntuforums.org – I have a 500GB hard-drive of which only 60GB is used for real data. However, .xsession-error fills up this entire disk every three days. Mainly I VNC to the machine although I don't know that this matters in the grand schema. I setup the following script to remove old .xsession data and to /dev/null output. The script runs upon login. Code: #!/bin/bash rm -rf /home/derek/.xsession-errors rm -rf /home/derek/.xsession-errors.old sudo -u derek ln -sf /dev/null /home/derek/.xsession-errors Everything went fine for five days. However, I noticed the hard-drive full again today. (Hardware)