ControlPanel: serverstats macro error
Emmanuel. M. Decarie
emm at scriptdigital.com
Mon May 6 17:03:54 PDT 2002
>The ControlPanel page on my site has started to display an error just below
>the controlPanelHeader image:
>
>[Macro error: Can't coerce the string "" into a floating point number
>because it isn't in the form "1.234".]
I'm seing this too on OS X 10.1.4.
>
>I am running on MacOSX
>
>There seems to be a problem in the
>mainresponder.controlPanel.#tools.serverstats macro which is obtaining an
>empty string with the statement:
>
>psout = sys.unixShellCommand ("ps -auxww | grep \"" + file.fileFromPath
>(frontier.getProgramPath ()) + "\"")
>
>omm the relevant line in ps -auxww is:
>
>cb 312 0.5 16.8 114860 43992 ?? S 5340:43.03
>/Applications/Frontier/UserLand FrontierM-b?M-"
>/Applications/Frontier/UserLand FrontierM-b?M-" -psn_0_917505
>
>(sorry if this wraps!)
>
>I can't get at the server right now to checkout what file.fileFromPath
>(frontier.getProgramPath ()) returns in my environment but I suspect the
>filepath may contain a funny character (such as ) which Unix is uneasy
>with.
>
>Funny it has only recently shown up (?after upgrade to 10.1.2): has anyone
>else seen this?
If at mainResponder.controlPanel.["#tools"].serverStats, instead of
local (psout = sys.unixShellCommand ("ps -auxww | grep \"" +
file.fileFromPath (frontier.getProgramPath ()) + "\"") )
you use
local (psout = sys.unixShellCommand ("ps -auxww | grep \"" +
"UserLand Frontier" + "\"") )
everything work fine.
Cheers
-Emmanuel
--
______________________________________________________________________
Emmanuel Décarie / Programmation pour le Web - Programming for the Web
Frontier - Perl - Javascript - XML <http://scriptdigital.com/>
More information about the Frontier-Users
mailing list