Page 1 of 1

if anyone's interested in debug.print T.I. to an html page

Posted: Fri Feb 20, 2015 12:42 am
by yyi
Hi Everyone,

Not sure if this was already posted but a quick search didn't return anything similar so I've attached these 2 files.

T.I. can be called without parameters to write some test lines to html file. If the file doesn't exist, it creates one and if it does it appends to file.
{Set variables portion of the T.I. will need to change to your path, servername, adminhost}
Style sheet (css extension not uploadable) is to format the html page which can be modified to suit.

URL will be like this;
file://tm1server/Servers/All/h_LogMain_Production.html


Hope you get some value from it.

Re: if anyone's interested in debug.print T.I. to an html pa

Posted: Fri Feb 20, 2015 11:29 am
by qml
Thanks for that, might come in handy one day.

Just one tip. Instead of this snippet:

Code: Select all

# exec cmd wait = 0, so inserting delay. 1sec = ~ 1,000,000
        n = 0;
        While (n <= 500000);
            n = n + 1;
        End;
i suggest you use this:

Code: Select all

SLEEP( 500 );
SLEEP is a useful TI and rules function that lets you specify precisely (in milliseconds) how long to pause for, without cooking the CPU unnecessarily.