Re: pgmonitor on solaris - Mailing list pgsql-interfaces

From Bruce Momjian
Subject Re: pgmonitor on solaris
Date
Msg-id 200103252145.QAA17684@candle.pha.pa.us
Whole thread Raw
In response to Re: pgmonitor on solaris  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
> > 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,
Pennsylvania19026
 


pgsql-interfaces by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgmonitor on solaris
Next
From: PostgreSQL Server
Date:
Subject: Re: Problem in PostgreSQL - jdbc