On 15:14 Tue 12 Apr     , Botykai Zsolt wrote:
> Tuesday 12 April 2005 13.49-n, A. Khattri ezt ?rta:
> > There really ought to be a --nocolor option for emerge, alongside the
> > --nospinner option. (I know I could add it to FEATURES in make.conf but I
> > dont want to do that). I run emerge --sync from cron on my servers - the
> > email from cron contains a lot of control codes.
> 
> until this you can do:
> insert '#NOCOLOR="true"' into make.conf then call this from cron:
> 
> #!/bin/bash
> sed 's/^#NOCOLOR="true"$/NOCOLOR="true"/g' /etc/make.conf > /tmp/make.conf \ 
> && cp /tmp/make.conf /etc/make.conf \
> && <call your desired emerge /> \
> && sed 's/^NOCOLOR="true"$/#NOCOLOR="true"/g' /tmp/make.conf > /etc/make.conf
> 

You could do that, or you could learn about sed's -i option, or better
yet, you could just use

NOCOLOR="true" emerge foo 

-- 
djm

--
[email protected] mailing list

Reply via email to