Forum OpenACS Development: Re: XoTCL Request Monitor on Windows

Posted by Antonio Pisano on
Dear Frank,

by my grepping these are the occurrences of exec in current code in acs-* packages that I don't expect to be working at all, not even when the proper software is correctly installed on a Windows machine:
- acs-admin/www/monitor.tcl:if {[catch { set uptime_output [exec /usr/bin/uptime] } errmsg]} {
- acs-admin/www/apm/version-generate-diffs.tcl: set cmd [list exec /usr/bin/diff]

These were fixed by

In all other case, proper configuration and installation of the required software should be sufficient to ensure functionality.

Please let me know if I am missing something


Posted by Antonio Pisano on
Occurrence in xotcl-request-monitor/www/index.tcl was also fixed by

Notice that uptime is used only as last resort, when no other cheaper unix compatible strategy is available. Therefore, call to sysctl can stay, as will just silently fail on Windows.

Something you migh be interested into:

Posted by Frank Bergmann on
Thanks a lot Antonio!

So yeah, we'd need to upgrade.
Or maybe we'd back-patch these changes. But it's good to know they are included "upstream" now.

I also found the other issue with the missing throttle functionality. The reason is that libthread is missing. I'll check with Maurizio.