Re: [Dave] getUlimitValues() function sending linux commands to windows
Hi Dave
There are no abnormal server settings.
I ran the script independent of CMSB as well as, as a Notice() from within the General Settings page.
The results were as one would expect.
The error message seems to want to appear around the Data Base Section but not consistently in the same places.
Some times beside the button, once as the button text, then as a select item in the Restore Data Base list etc... but I've also had it appear near the top of the page as well.
Anyway, adding the redirection "2>&1" does seem to solve the problem.
I've tested it as many ways as I can and do not see the error appearing anywhere.
I think you have the right solution with the redirection. The redirection certainly doesn't affect anything since the error message doesn't match any of the regex expressions.
I'll leave my system running with the redirection and should the error re-appear I'll let you know but I think it's safe to say you solved it.
For those that are experiencing this problem, this is where Dave as put the redirection.
// get shell command
if ($type == 'soft') { $cmd = 'sh -c "ulimit -a -S" 2>&1'; }
elseif ($type == 'hard') { $cmd = 'sh -c "ulimit -a -H" 2>&1'; }
I have another bazar issue but I'll post it as a new item.
Glen
http://www.CanadianDomainRegistry.ca
ITI Internetworking Technologies Inc.