Skip to Main Content

Enterprise Manager

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

An OEM 13c Job Output Colorizing

Victor.KhalturinDec 24 2019 — edited Dec 24 2019

I'm wondering if there is any way to inject html element into a job output

I have a simple bash script with the following content

[root@s001tst-gisas1 .scripts]# cat color.sh

echo " Non Escaped"

echo "<span style=\"color:blue;\">[ok]</span>"

echo " Escaped "

echo "\<span style=\"color:blue;\"\>[ok]\</span\>"

[root@s001tst-gisas1 .scripts]# ./color.sh

Non Escaped

<span style="color:blue;">[ok]</span>

Escaped

\\\<span style="color:blue;"\\>\[ok\]\\\</span\\>

So I execute that script as the OS Command job in the Enterpise Manager and get the output like the following

pastedImage_0.png

So OEM treated tags as the text

Reviewing the OEM page source I see that all "<" and ">" characters were substituted by both &lt and &gt

style="white-space: pre; cursor: text;" class="x25"><span style="color:blue;">[ok]</span></span></span></td>

Is there any way to force them to be treated as html tags?

Comments
Post Details
Added on Dec 24 2019
0 comments
245 views