Um, ok, so the parsing works, but that breaks a browser by attempting to do the <.... I was able to fix it simply by removing the STATE column from the process display for that one server....
Kent C. Brodie - brodie at phys.mcw.edu Department of Physiology Medical College of Wisconsin (414) 456-8590
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: Tuesday, July 25, 2006 4:03 PM To: hobbit at hswn.dk Subject: Re: [hobbit] darwin "ps" display parsing in OS-X Tiger causes all procs to vanish in display
On Tue, Jul 25, 2006 at 03:52:38PM -0500, Brodie, Kent wrote:
OS-X 10.4 (procs display is broken)
PID PPID USER STARTED STAT PRI %CPU TIME %MEM RSS VSZ COMMAND 1 0 root 13Jul06 S<s 32 0.0 0:17.23 -0.0 500
28348 /sbin/launchd
It's the first line that's causing the hobbit procs parsing to break. Specifically, the "S<s" status. While I don't know enough OS-X
tobe
dangerous, I suspect it's a new type of process status under the latest Darwin. The "<" in the status is normal, and this is causing the procs parsing in hobbit to cut off everything beyond that.
This of course makes any procs check useless (in my case,I was checking for simple things, like "cron", etc - and the test fails of course, since there's no such (or any other!) process listed..................
I can see why it would stop it from appearing on the web page (since your browser then interprets everything after the '<' as an unknown
- very large - HTML tag. But the client parsing code works regardless of this, and should handle the process listing just fine.
Could you verify if the following URL
http://www.hswn.dk/hobbit-cgi/bb-hostsvc.sh?CLIENT=voodoo.hswn.dk§io n=ps (adapted to match you Hobbit server hostname and the OSX client name, of course) returns the full "ps" listing, or only a part of it?
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk