ControlPanel: serverstats macro error

Tammy Walters twalters at bhsroe.k12.il.us
Sun May 12 06:46:37 PDT 2002


Thank you

-----Original Message-----
From: frontier-users-admin at userland.com
[mailto:frontier-users-admin at userland.com] On Behalf Of Emmanuel. M.
Decarie
Sent: Monday, May 06, 2002 7:04 PM
To: Frontier-Users at userland.com
Subject: Re: ControlPanel: serverstats macro error

>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