RE: colourise doesn't seem to function.
Thanks Alan,
and you'd only get the coloured stuff when in full debug mode...which wouldnt be done on a production server unless you're also willing to patch? Ok, I'll try the update. It's funny because I'm sure I saw it working at one point early on, must have been an upgrade that broke it again. We do run -X (full debug) mode occasionally on production servers to find faults, given that NAS's tend to fail over to another radius if one fails. Thanks Andy
-----Original Message----- From: freeradius-users-bounces+andy.franks=sath.nhs.uk@lists.freeradius.org [mailto:freeradius-users-bounces+andy.franks=sath.nhs.uk@lists.freeradiu s.org] On Behalf Of A.L.M.Buxey@lboro.ac.uk Sent: 16 July 2014 13:07 To: FreeRadius users mailing list Subject: Re: colourise doesn't seem to function. Hi,
The main question is whether it's a known issue with that version, don't want to upgrade otherwise as these are in production.
old pre-release with all the known bugs/issues/security etc - surely reason to upgrade...and you'd only get the coloured stuff when in full debug mode...which wouldnt be done on a production server unless you're also willing to patch? alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 16 Jul 2014, at 09:01, Franks Andy (RLZ) IT Systems Engineer <Andy.Franks@sath.nhs.uk> wrote:
Thanks Alan,
and you'd only get the coloured stuff when in full debug mode...which wouldnt be done on a production server unless you're also willing to patch? Ok, I'll try the update. It's funny because I'm sure I saw it working at one point early on, must have been an upgrade that broke it again. We do run -X (full debug) mode occasionally on production servers to find faults, given that NAS's tend to fail over to another radius if one fails. Thanks Andy
Call isatty() if your output device appears not to be a tty when it won't colourise the text. Check with: #include <stdio.h> #include <unistd.h> int main(int argc, char **argv) { if (!isatty(fileno(stdout))) { printf("I'm not a TTY :(\n"); return 1; } printf("I'm a TTY :)\n"); return 0; } Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
participants (2)
-
Arran Cudbard-Bell -
Franks Andy (RLZ) IT Systems Engineer