Bleachbit by crontab and silent mode

Forums: 
Forum tags: 

Hi to everybody! :)

This is a part o my crontab on my Debian Stretch:

1 4 * * * /usr/bin/bleachbit -c system.cache
2 4 * * * /usr/bin/bleachbit -c system.memory
3 4 * * * /usr/bin/bleachbit -c system.localizations
4 4 * * * /usr/bin/bleachbit -c system.free_disk_space
5 4 * * * /usr/bin/bleachbit -c system.tmp
6 4 * * * /usr/bin/bleachbit -c system.trash
7 4 * * * /usr/bin/bleachbit -c apt.package_lists

Every day I got a "new mail" in /var/mail# which shows me what files Bleachbit has deleted but I don't need this report and I'd like so set a "silent" mode without reports.

Gabriele

What about piping to null like this?

1 4 * * * /usr/bin/bleachbit -c system.cache > null

---
Andrew, lead developer

Thanks for your reply, I tryed it by command line and it works, now I updated crontab file and I'll wait this night to understand what happen! :)

GabrieleMax

Now I have in my /var/mail/... the text below:

From root@server01 Wed Nov 23 04:02:03 2016
Return-path:
Envelope-to: root@server01
Delivery-date: Wed, 23 Nov 2016 04:02:03 +0100
Received: from root by server01 with local (Exim 4.88)
(envelope-from )
id 1c9Nox-0000Dr-3J
for root@server01; Wed, 23 Nov 2016 04:02:03 +0100
From: root@server01 (Cron Daemon)
To: root@server01
Subject: Cron /usr/bin/bleachbit -c system.memory > null
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
Message-Id:
Date: Wed, 23 Nov 2016 04:02:03 +0100

[Errno 2] File o directory non esistente:

From root@server01 Wed Nov 23 04:04:20 2016
Return-path:
Envelope-to: root@server01
Delivery-date: Wed, 23 Nov 2016 04:04:20 +0100
Received: from root by server01 with local (Exim 4.88)
(envelope-from )
id 1c9Nr9-0000EF-Uu
for root@server01; Wed, 23 Nov 2016 04:04:19 +0100
From: root@server01 (Cron Daemon)
To: root@server01
Subject: Cron /usr/bin/bleachbit -c system.free_disk_space > null
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
Message-Id:
Date: Wed, 23 Nov 2016 04:04:19 +0100

wrote 2 files and 117063680 bytes in 5 seconds at 21.66 MB/s
0 bytes and 77651 inodes available to non-super-user
4191232 bytes and 77651 inodes available to super-user
wrote 2 files and 371152896 bytes in 10 seconds at 35.49 MB/s
0 bytes and 97514 inodes available to non-super-user
4194304 bytes and 97514 inodes available to super-user

This is my crontab:

1 4 * * * /usr/bin/bleachbit -c system.cache > null
2 4 * * * /usr/bin/bleachbit -c system.memory > null
3 4 * * * /usr/bin/bleachbit -c system.localizations > null
4 4 * * * /usr/bin/bleachbit -c system.free_disk_space > null
5 4 * * * /usr/bin/bleachbit -c system.tmp > null
6 4 * * * /usr/bin/bleachbit -c system.trash > null
7 4 * * * /usr/bin/bleachbit -c apt.package_lists > null

I understood just "system.memory" and "system.free_disk_space" don't work with "> null" feature, I tryed them by command line and system.memory doesn't show results by null feature and system.free_disk_space show a result also by null.

GabrieleMax