Am 11.06.2007 um 09:53 schrieb Alexander Skwar:
Robert Welz <[EMAIL PROTECTED]> wrote:
Am 04.04.2007 um 06:17 schrieb [EMAIL PROTECTED]:
Why do --nocolor and --color=n not work (sys-apps/portage-2.1.2.3)?
Why does the damned thing default to thinking I want blaring bizarre
colors scattered all over my screen?
Because it makes things easier to read.
Today I fought with a shell script:
#! /bin/bash
restart_result=`/etc/init.d/boinc restart
/usr/bin/echo -e "$restart_result" | /root/bin/mail "check chroots"
cron-Oberon
and no simpe way to switch color and other ANSI Sequences to off
Where did you get colors? Init scripts support a "--nocolor" switch.
Did this switch not work? Or did you get colors somewhere else?
Oh fine, that works:
restart_result=`/etc/init.d/boinc --nocolor restart`
/usr/bin/echo -e "$restart_result" | /root/bin/mail "check chroots"
cron-Oberon
gives:
* Service boinc stopping
* Service boinc stopped
* Service boinc starting
* Service boinc started
instead of
[32;01m*[0m Service boinc stopping
[32;01m*[0m Service boinc stopped
[32;01m*[0m Service boinc starting
[32;01m*[0m Service boinc started
Thanks!
Robert
Alexander Skwar
--
[EMAIL PROTECTED] mailing list
--
[EMAIL PROTECTED] mailing list