How to get colored emails from crontab?
-
05-07-2019 - |
Question
I call a Python script from crontab. The script does generates colored output using ANSI escapes but when crontab is sending the mail with the output I see the escapes instead of colors.
What is happening is logic but I would like to know if it would be possible to generate a html message instead.
I would like a solution that does not require to implement the email notification myself.
Solution
Maybe you can try with some txt to html converter, for example, http://txt2html.sourceforge.net/, you can also use pygments with some modifications.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow