Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2PLk6w69595 for ; Sun, 25 Mar 2001 16:46:06 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id QAA17684; Sun, 25 Mar 2001 16:45:43 -0500 (EST) From: Bruce Momjian Message-Id: <200103252145.QAA17684@candle.pha.pa.us> Subject: Re: pgmonitor on solaris In-Reply-To: <19504.985556231@sss.pgh.pa.us> "from Tom Lane at Mar 25, 2001 04:37:11 pm" To: Tom Lane Date: Sun, 25 Mar 2001 16:45:43 -0500 (EST) CC: =?ISO-8859-1?Q?Roberto_Jo=E3o_Lopes_Garcia?= , pgsql-interfaces@postgresql.org X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UNKNOWN-8BIT X-Archive-Number: 200103/172 X-Sequence-Number: 1333 > > Roberto Joćo Lopes Garcia writes: > >> Is there a pgmonitor version for Solaris?? It dies with: > >> > >> Can't run 'ps': awk: syntax error near line 3 > >> awk: illegal statement near line 3 > >> awk: illegal statement near line 4 > >> Please send in a patch. > > Looks like your problem is not with ps, but with awk. pgmonitor uses > a rather complicated awk program that is probably not too portable. > I hadn't complained about it before because I checked that it worked > with the vendor awk in HPUX, which I figured ought to be sufficiently > behind the times ;-). Looks like I was mistaken. Bruce, can you > simplify that awk program? I can't figure out how to simplify it, but I did find the use of \{ instead of { in the code and released a new version, 0.27. Hopefully that will take care of it. If not, I can start stripping lines out of the awk program until we fine the problem. -- 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