Having problems creating a cron job.

Forums: 

I'm using Xubuntu 12.04.3 and installed BleachBit 0.9.6. I created a script in /etc/cron.daily/clean containing the following:

LOG_FILE="/var/log/bleachbit.log"

bleachbit -c --preset &> "$LOG_FILE"
echo -e "\n\nFinished on `date`" >> "$LOG_FILE"

The bleachbit.log finishes with errors when it's run. The contents are:

/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
/usr/share/bleachbit/Cleaner.py:633: GtkWarning: IA__gtk_clipboard_get_for_display: assertion `display != NULL' failed
clipboard = gtk.clipboard_get()
Traceback (most recent call last):
File "/usr/share/bleachbit/Worker.py", line 83, in execute
for ret in cmd.execute(self.really_delete):
File "/usr/share/bleachbit/Command.py", line 128, in execute
func_ret = self.func()
File "/usr/share/bleachbit/Cleaner.py", line 634, in clear_clipboard
clipboard.set_text("")
AttributeError: 'NoneType' object has no attribute 'set_text'
info: starting BleachBit version 0.9.6
warning: No default locale found. Assuming 'C'
debug: clean_operation('deepscan'), options = '[u'backup', u'ds_store', u'thumbs_db', u'tmp']'
debug: clean_operation('system'), options = '['cache', 'clipboard', 'rotated_logs', 'tmp', 'trash']'
'NoneType' object has no attribute 'set_text'
Delete 114.7kB /var/log/syslog.1
Delete 4.1kB /var/log/upstart/network-interface-ppp0.log.1.gz
Delete 4.1kB /var/log/upstart/network-interface-usb0.log.1.gz
Delete 4.1kB /var/log/cups/error_log.1.gz
debug: clean_operation('apt'), options = '[u'autoclean', u'autoremove', u'clean']'
apt-get autoclean 0
apt-get autoremove 0
debug: deepscans= {'/root': [{'regex': u'\\.[Bb][Aa][Kk]$', 'path': '/root', 'cache': False, 'command': u'delete'}, {'regex': u'[a-zA-Z]{1,4}~$', 'path': '/root', 'cache': False, 'command': u'delete'}, {'regex': u'^\\.DS_Store$', 'path': '/root', 'cache': False, 'command': u'delete'}, {'regex': u'^Thumbs\\.db$', 'path': '/root', 'cache': False, 'command': u'delete'}, {'regex': u'^Thumbs\\.db:encryptable$', 'path': '/root', 'cache': False, 'command': u'delete'}, {'regex': u'^~wr[a-z][0-9]{4}\\.tmp$', 'path': '/root', 'cache': False, 'command': u'delete'}, {'regex': u'^ppt[0-9]{4}\\.tmp$', 'path': '/root', 'cache': False, 'command': u'delete'}]}
debug: deepscan path= /root
debug: deepscan dict= [{'regex': u'\\.[Bb][Aa][Kk]$', 'path': '/root', 'cache': False, 'command': u'delete'}, {'regex': u'[a-zA-Z]{1,4}~$', 'path': '/root', 'cache': False, 'command': u'delete'}, {'regex': u'^\\.DS_Store$', 'path': '/root', 'cache': False, 'command': u'delete'}, {'regex': u'^Thumbs\\.db$', 'path': '/root', 'cache': False, 'command': u'delete'}, {'regex': u'^Thumbs\\.db:encryptable$', 'path': '/root', 'cache': False, 'command': u'delete'}, {'regex': u'^~wr[a-z][0-9]{4}\\.tmp$', 'path': '/root', 'cache': False, 'command': u'delete'}, {'regex': u'^ppt[0-9]{4}\\.tmp$', 'path': '/root', 'cache': False, 'command': u'delete'}]
debug: DeepScan.scan: searches= {'/root': [u'\\.[Bb][Aa][Kk]$', u'[a-zA-Z]{1,4}~$', u'^\\.DS_Store$', u'^Thumbs\\.db$', u'^Thumbs\\.db:encryptable$', u'^~wr[a-z][0-9]{4}\\.tmp$', u'^ppt[0-9]{4}\\.tmp$']}
Disk space recovered: 127kB
Files deleted: 4
Special operations: 2
Errors: 1

Finished on Thu Oct 31 07:35:41 PDT 2013

It looks like it's complaining about not having a display. How do I prevent this?