[Xymon] Insert a newline into your custom xymon message?

Jeremy Ruffer jeremy.ruffer at gmail.com
Thu Sep 24 17:13:55 CEST 2020


I'm wondering if </br> would do it.

Jeremy

On Thu, 24 Sep 2020, 15:36 Adam Goryachev, <
mailinglists at websitemanagers.com.au> wrote:

>
> On 24/9/20 23:16, Gabby Gibbons via Xymon wrote:
>
> Hello,
>
> I'm wondering if there's any way to insert a newline in a message. I know
> it's possible to do by actually putting it on another line in the script
> but I don't like the way that it looks because it messes up all the
> indenting in the script, so that's why I was wondering if there's a newline
> character that xymon supports, \n doesn't work it just append a literal
> "\n".
>
> An example of the way I can get it to work, but looks bad:
> MSG="${MSG}
> appended text"
>
> How I would like it work:
> MSG="${MSG}\nappended text"
>
>
> What about:
>
> MSG=`echo -en "${MSG}\nappended text\n"`
>
> Regards,
> Adam
>
> --
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20200924/608b73d2/attachment.htm>


More information about the Xymon mailing list