Am Mittwoch 17 September 2008 01:09:24 schrieb ext Robert Annessi:
> On Tuesday 16 September 2008 17:47:17 Dirk Heinrichs wrote:
> > Am Dienstag, 16. September 2008 17:29:31 schrieb Robert Annessi:
> > > How to make paludis quiet so it can be used in cronjobs?
> >
> > somecommand >/dev/null 2>&1
> >
> > Replace /dev/null with a file of your choice.
>
> It's hard for me to automatically differ between an info and error message
> from paludis --sync.

Then redirect stdout and stderr to different files:

somecommand >/tmp/output 2>/tmp/errors.

> My paludis related cronjobs currently look like this (from which I really
> don't like the --sync, because I don't get any error messages):

See above.

> 20 */23 */5 * * if on_ac_power; then for FILE in
> `/usr/share/paludis/ruby/demos/find_unused_distfiles.rb`; do rm -vf
> ${FILE}; done; fi
> 25 */23 */2 * * if on_ac_power; then paludis --sync >/dev/null 2>&1
> 40 */23 */2 * * if on_ac_power; then paludis --no-color --report |
> egrep -v '^(Current state of the system||Finished processing [0-9]+
> packages\. 0 errors\.)$'; fi
> 45 */23 */2 * * if on_ac_power; then config-decruft | egrep -v '^* Checking
> '; fi

> Am I missing any quiet option or how do you handle automatic syncing?

I use a script.

Bye...

        Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Wanheimerstraße 68      | Web:  http://www.capgemini.com
D-40468 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: wwwkeys.pgp.net

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
paludis-user mailing list
[email protected]
http://lists.pioto.org/mailman/listinfo/paludis-user

Reply via email to