pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tim Ellis <Tim.Ellis@gamet.com>
To: David Wheeler <david@wheeler.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Silencing NOTICEs in Perl Pg
Date: Thu, 29 Aug 2002 18:36:26 -0400
Message-ID: <20020829183626.65ad41d4.Tim.Ellis@gamet.com> (raw)
In-Reply-To: <7B2DC566-BBAF-11D6-B671-0003931A964A@wheeler.net>
References: <20020829200201.GA27531@wolff.to>
	<7B2DC566-BBAF-11D6-B671-0003931A964A@wheeler.net>

> open STDERR, "| perl -e 'while (<>) { print unless /^NOTICE:  / }'"
>    or die "Cannot pipe STDERR: $!\n";

perl --help
 . . .
  -n              assume 'while (<>) { ... }' loop around program
  -p              assume loop like -n but print line also, like sed
 . . .

Thus,

perl -ne 'print unless /^NOTICE:  /'

-- 
Tim Ellis
Senior Database Architect
Gamet, Inc.



view thread (21+ messages)  latest in thread

Message-ID: <20020829183626.65ad41d4.Tim.Ellis@gamet.com>
Permalink:  ../20020829183626.65ad41d4.Tim.Ellis@gamet.com/
Also on:    postgresql.org/message-id/20020829183626.65ad41d4.Tim.Ellis@gamet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Tim.Ellis@gamet.com, david@wheeler.net
  Subject: Re: Silencing NOTICEs in Perl Pg
  In-Reply-To: <20020829183626.65ad41d4.Tim.Ellis@gamet.com>
  References: <20020829200201.GA27531@wolff.to> <7B2DC566-BBAF-11D6-B671-0003931A964A@wheeler.net> <20020829183626.65ad41d4.Tim.Ellis@gamet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox