Forum OpenACS Development: Re: XoTCL Request Monitor on Windows

Collapse
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 http://cvs.openacs.org/changelog/OpenACS?cs=oacs-5-9%3Aantoniop%3A20170620193423

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

Ciao
Antonio

Collapse
Posted by Antonio Pisano on
Occurrence in xotcl-request-monitor/www/index.tcl was also fixed by http://cvs.openacs.org/changelog/OpenACS?cs=oacs-5-9%3Aantoniop%3A20170620194611

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:
https://sourceforge.net/projects/gnuwin32/

Collapse
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.

Thanks!
Frank