Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27543 - runcscript --nocolor does not work with cron
Summary: runcscript --nocolor does not work with cron
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-29 09:40 UTC by Axxackall
Modified: 2003-09-14 07:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axxackall 2003-08-29 09:40:25 UTC
runcscript --nocolor strips colors when it runs from the command prompt, or
inside the script, when it runs from the command prompt too. It is convinient
when you need to redirect the output to syslog.

But if I run the same script from cron then "--nocolor" option doesn't work and
my syslog is impossible to parse by log analyzers. 

Weird, it worked before. In fact the log of that script shows that "--nocolor"
option worked before, but not anymore for already more than a month.
Comment 1 SpanKY gentoo-dev 2003-08-29 14:07:15 UTC
what if you do `env NOCOLOR=true` ? 
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-01 11:50:31 UTC
Attach your crontab here.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-14 07:23:02 UTC
Works on my boxen.