Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.3/8.11.1) with SMTP id f2R1eYw96971 for ; Mon, 26 Mar 2001 20:40:34 -0500 (EST) (envelope-from pgsql-interfaces-owner@postgresql.org) Received: from ftp.mha.com.br (ftp.mha.com.br [200.246.138.227]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2QKCCw57580 for ; Mon, 26 Mar 2001 15:12:12 -0500 (EST) (envelope-from roberto@mha.com.br) Received: from pc116.mha.com.br (mha1.mha.com.br [200.246.138.226]) by ftp.mha.com.br (8.9.3/8.8.7) with ESMTP id QAA18521; Mon, 26 Mar 2001 16:12:01 -0300 Message-Id: <5.0.2.1.0.20010326170850.00a611b0@ftp.mha.com.br> X-Sender: roberto@ftp.mha.com.br X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Mon, 26 Mar 2001 17:10:33 -0300 To: Bruce Momjian From: Roberto =?iso-8859-1?Q?Jo=E3o?= Lopes Garcia Subject: Re: pgmonitor on solaris Cc: pgsql-interfaces@postgresql.org In-Reply-To: <200103261953.OAA01935@candle.pha.pa.us> References: <5.0.2.1.0.20010326153208.00a79200@ftp.mha.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200103/190 X-Sequence-Number: 1351 I don't have gawk. I just get it. Will compile test and send results back to you. Roberto At 16:53 26/03/01, Bruce Momjian wrote: > > From the man /usr/ucb/ps there is no argument to display proccess for a > > expecific user U or u so I think can't be used. > > From the man /bin/ps: -f long format, > > -U user name list, > > -u user ID list, > > -e all proccess, > > -p proc list > > > > I changed same pgmonitor ps_???_args but I could not fix it. Still not > > showing proccess. > >OK, let's stay away from ucb ps because with no user restriction, the ps >command will take too long to be run repeatedly. Do you have gawk? Can >you edit the script and replace the mention of nawk with gawk: > > if { ... nawk ...} { > set awk "gawk" <-------------- > } > >and let me know how it works. > >-- > Bruce Momjian | http://candle.pha.pa.us > pgman@candle.pha.pa.us | (610) 853-3000 > + If your life is a hard drive, | 830 Blythe Avenue > + Christ can be your backup. | Drexel Hill, Pennsylvania 19026