|
From: | address@hidden |
Subject: | Re: Terminal Batch doesn't work always |
Date: | Fri, 23 Mar 2018 21:45:17 +0100 |
Hello Lutz, the color (ANSI escape sequence) is set on server-side and stripped by monit CLI if in batch mode. If you use curl to fetch the status in txt format directly, you need to strip the escape sequence yourselves, for example: curl http://127.0.0.1:2812/_status | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" We'll simplify the color handling in the future release. Best regards, Martin
|
[Prev in Thread] | Current Thread | [Next in Thread] |