1 |
Am 11.06.2007 um 09:53 schrieb Alexander Skwar: |
2 |
|
3 |
> Robert Welz <welz@×××××××××.de> wrote: |
4 |
> |
5 |
>> |
6 |
>> Am 04.04.2007 um 06:17 schrieb felix@×××××××.com: |
7 |
>> |
8 |
>>> Why do --nocolor and --color=n not work (sys-apps/portage-2.1.2.3)? |
9 |
>>> |
10 |
>>> Why does the damned thing default to thinking I want blaring bizarre |
11 |
>>> colors scattered all over my screen? |
12 |
> |
13 |
> Because it makes things easier to read. |
14 |
> |
15 |
>> Today I fought with a shell script: |
16 |
>> |
17 |
>> #! /bin/bash |
18 |
>> restart_result=`/etc/init.d/boinc restart |
19 |
>> /usr/bin/echo -e "$restart_result" | /root/bin/mail "check chroots" |
20 |
>> cron-Oberon |
21 |
>> |
22 |
>> and no simpe way to switch color and other ANSI Sequences to off |
23 |
> |
24 |
> Where did you get colors? Init scripts support a "--nocolor" switch. |
25 |
> Did this switch not work? Or did you get colors somewhere else? |
26 |
|
27 |
Oh fine, that works: |
28 |
|
29 |
restart_result=`/etc/init.d/boinc --nocolor restart` |
30 |
/usr/bin/echo -e "$restart_result" | /root/bin/mail "check chroots" |
31 |
cron-Oberon |
32 |
|
33 |
gives: |
34 |
|
35 |
* Service boinc stopping |
36 |
* Service boinc stopped |
37 |
* Service boinc starting |
38 |
* Service boinc started |
39 |
|
40 |
instead of |
41 |
|
42 |
[32;01m*[0m Service boinc stopping |
43 |
[32;01m*[0m Service boinc stopped |
44 |
[32;01m*[0m Service boinc starting |
45 |
[32;01m*[0m Service boinc started |
46 |
|
47 |
|
48 |
Thanks! |
49 |
|
50 |
Robert |
51 |
|
52 |
|
53 |
|
54 |
|
55 |
> Alexander Skwar |
56 |
> |
57 |
> -- |
58 |
> gentoo-user@g.o mailing list |
59 |
> |
60 |
> |
61 |
|
62 |
-- |
63 |
gentoo-user@g.o mailing list |