You are not logged in.

#1 2012-03-22 01:00:57

dodo3773
Member
Registered: 2011-03-17
Posts: 820

[SOLVED] Bleachbit command line not working

I am trying to incorporate bleachbit into a script "bleachbit -c". I have tried bleachbit from community and bleachbit-svn and bleachbit-cli from the aur. No matter what I do I get this error:

info: starting BleachBit version 0.9.2
warning: cannot find GPLv3 license text file
Traceback (most recent call last):
  File "/usr/bin/bleachbit", line 47, in <module>
    bleachbit.CLI.process_cmd_line()
  File "/usr/share/bleachbit/CLI.py", line 197, in process_cmd_line
    preview_or_clean(operations, True)
  File "/usr/share/bleachbit/CLI.py", line 105, in preview_or_clean
    worker = Worker.Worker(cb, really_clean, operations).run()
  File "/usr/share/bleachbit/Worker.py", line 67, in __init__
    raise RuntimeError("No work to do")
RuntimeError: No work to do

Not sure if it is a python issue or if I need to go into my system and delete some files and try again or what. Just curious if anyone has run into this problem and knows a solution.

Last edited by dodo3773 (2012-03-22 16:26:39)

Offline

#2 2012-03-22 10:32:23

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [SOLVED] Bleachbit command line not working

Works fine... example:

sudo bleachbit --clean system.cache system.localizations system.trash system.tmp

See my .bashrc on github.  Just setup an alias; no script needed.

Last edited by graysky (2012-03-22 10:32:56)

Offline

#3 2012-03-22 16:26:11

dodo3773
Member
Registered: 2011-03-17
Posts: 820

Re: [SOLVED] Bleachbit command line not working

graysky wrote:

Works fine... example:

sudo bleachbit --clean system.cache system.localizations system.trash system.tmp

See my .bashrc on github.  Just setup an alias; no script needed.

Thanks. I did not know it was so simple. Although, I do need a script to restart and empty pdnsd and my system dns cache etc.. Thanks again graysky. Marking as solved.

Edit: I think I will steal your rc.d functions though.

Last edited by dodo3773 (2012-03-22 16:28:11)

Offline

Board footer

Powered by FluxBB