| From: | "Tim Barnard" <tbarnard(at)povn(dot)com> |
|---|---|
| To: | "pgsql-general" <pgsql-general(at)postgreSQL(dot)org>, "Neil Conway" <nconway(at)klamath(dot)dyndns(dot)org> |
| Subject: | Re: Number of Connections |
| Date: | 2001-02-16 21:56:37 |
| Message-ID: | 010801c09863$5673fc80$a519af3f@hartcomm.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
What's the purpose of the "grep -v grep" ?
Tim
----- Original Message -----
From: "Neil Conway" <nconway(at)klamath(dot)dyndns(dot)org>
To: "pgsql-general" <pgsql-general(at)postgreSQL(dot)org>
Sent: Friday, February 16, 2001 12:05 PM
Subject: Re: [GENERAL] Number of Connections
> On Fri, Feb 16, 2001 at 02:09:42PM -0500, Bryan White wrote:
> > I use:
> > ps ax | grep postgres | wc -l
> > Note the value is often one to high because is picks up the grep
process.
>
> Why not just remove 'grep' - i.e
>
> ps ax | grep postgres | grep -v grep | wc -l
>
> HTH,
>
> Neil
>
> --
> Neil Conway <neilconway(at)home(dot)com>
> Get my GnuPG key from: http://klamath.dyndns.org/mykey.asc
> Encrypted mail welcomed
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stephan Szabo | 2001-02-16 22:24:06 | Re: Question |
| Previous Message | Jie Liang | 2001-02-16 21:50:48 | Re: Re: [GENERAL] what means "INSERT xxx yyy" ? |