Refresh Browser

Hello everyone,

I am trying to program some code, that will execute 'ls' command periodically. My purpose is to have the browser updating every 0.4 sec.

Any ideas of how to do it?

Thanks in advance.

Iker

Refresh Browser

On Sunday 11 January 2009 23:20:00 iker [..] ... wrote:
> Hello everyone,
>
> I am trying to program some code, that will execute 'ls' command
> periodically. My purpose is to have the browser updating every 0.4 sec.
>
> Any ideas of how to do it?

What do you want to see every 0.4s ?

The TaskBrowser can not be programmed as such ('ls' is not a program script
function).

If you *really* need this, the easiest way is hacking it into TaskBrowser.cpp,
you could also extend the taskbrowser with the 'ls' method, and run a script
in another, periodic component which calls ls on the taskbrowser (it must then
have a 'peer' pointer to the taskbrowser).

The TaskBrowser is not meant for such monitoring tasks. Why don't you use the
ReportingComponent, ie the 'ConsoleReporting' version ? It will let you trace
all data ports. See also the PDF/HTML manual of that component.

Peter