Date: Thu, 30 Oct 2008 17:28:46 +0100 From: Marian Hettwer <mh@kernel32.de> To: Aragon Gouveia <aragon@phat.za.net> Cc: stable@freebsd.org, Eduardo Meyer <dudu.meyer@gmail.com>, questions@freebsd.org Subject: Re: Script-friendly (parseble) ps(1) output? Message-ID: <7b873e39ac6eb91f7d2d3a1088207498@localhost> In-Reply-To: <20081030154512.GB80375@phat.za.net> References: <20081030154512.GB80375@phat.za.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Thu, 30 Oct 2008 17:45:12 +0200, Aragon Gouveia <aragon@phat.za.net> wrote: > | By Eduardo Meyer <dudu.meyer@gmail.com> > | [ 2008-10-30 00:04 +0200 ] >> Hello, >> >> I need to write a cgi script which will print the output from ps(1) in >> a table (html), so the average-operator can click on a KILL link and >> the cgi will send the selected signal. >> >> I need to add one ps information per column in a table (html), >> however, I found ps(1) output to be too hard to parse. There is no >> separator. I believed \t was the separator but its not. > > Another option might be to mount /proc and use that instead. See > procfs(5). > I wouldn't do that. IIRC procfs(5) is deprecated in FreeBSD. But I could be wrong... regards, Marian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7b873e39ac6eb91f7d2d3a1088207498>