Re: Script-friendly (parseble) ps(1) output?

2008-10-31 Thread Oliver Fromme
Eduardo Meyer wrote: Now my next problem, do the sabe with sockstat I think in earlier days sockstat was just a script that merged the output from netstat and fstat (or maybe some third tool, too, I don't remember). So, you might try to use netstat and fstat instead. Of course it depends

Re: Script-friendly (parseble) ps(1) output?

2008-10-31 Thread Eduardo Meyer
On Fri, Oct 31, 2008 at 8:03 AM, Oliver Fromme [EMAIL PROTECTED] wrote: Eduardo Meyer wrote: Now my next problem, do the sabe with sockstat I think in earlier days sockstat was just a script that merged the output from netstat and fstat (or maybe some third tool, too, I don't

Re: Script-friendly (parseble) ps(1) output?

2008-10-31 Thread Peter
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

Re: Script-friendly (parseble) ps(1) output?

2008-10-30 Thread Oliver Fromme
Eduardo Meyer wrote: 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)

Re: Script-friendly (parseble) ps(1) output?

2008-10-30 Thread Jerry McAllister
On Wed, Oct 29, 2008 at 04:15:29PM -0700, Xin LI wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eduardo Meyer wrote: 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

Re: Script-friendly (parseble) ps(1) output?

2008-10-30 Thread Aragon Gouveia
| By Eduardo Meyer [EMAIL PROTECTED] | [ 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.

Re: Script-friendly (parseble) ps(1) output?

2008-10-30 Thread Marian Hettwer
Hi, On Thu, 30 Oct 2008 17:45:12 +0200, Aragon Gouveia [EMAIL PROTECTED] wrote: | By Eduardo Meyer [EMAIL PROTECTED] | [ 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

Re: Script-friendly (parseble) ps(1) output?

2008-10-30 Thread Eduardo Meyer
On Thu, Oct 30, 2008 at 12:18 PM, Oliver Fromme [EMAIL PROTECTED] wrote: Eduardo Meyer wrote: 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 Thank you all. I didnt mention the language, yes, I

Re: Script-friendly (parseble) ps(1) output?

2008-10-30 Thread Eduardo Meyer
On Thu, Oct 30, 2008 at 12:18 PM, Oliver Fromme [EMAIL PROTECTED] wrote: Eduardo Meyer wrote: 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 Thank you all. I didnt mention the language, yes, I

Re: Script-friendly (parseble) ps(1) output?

2008-10-30 Thread Oliver Fromme
Eduardo Meyer wrote: Oliver Fromme wrote: Eduardo Meyer wrote: 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 Thank you all. I didnt mention the language, yes, I wanted it with shell

Re: Script-friendly (parseble) ps(1) output?

2008-10-30 Thread Eduardo Meyer
On Thu, Oct 30, 2008 at 7:14 PM, Oliver Fromme [EMAIL PROTECTED] wrote: Eduardo Meyer wrote: Oliver Fromme wrote: Eduardo Meyer wrote: 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

Re: Script-friendly (parseble) ps(1) output?

2008-10-30 Thread Patrick Tracanelli
Eduardo Meyer escreveu: [...] Now my next problem, do the sabe with sockstat %sockstat | head -4 USER COMMANDPID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS freebsdsupportsshd 57255 3 tcp4 172.16.0.225:22 172.16.0.69:63583 freebsdsupportsshd 57255 4 stream - ??

Script-friendly (parseble) ps(1) output?

2008-10-29 Thread Eduardo Meyer
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

Re: Script-friendly (parseble) ps(1) output?

2008-10-29 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eduardo Meyer wrote: 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

Re: Script-friendly (parseble) ps(1) output?

2008-10-29 Thread Polytropon
On Wed, 29 Oct 2008 20:02:43 -0200, Eduardo Meyer [EMAIL PROTECTED] wrote: 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. If you can use awk, it's quite simple: