Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4BC13475F40 for ; Thu, 29 Aug 2002 21:35:16 -0400 (EDT) Received: from linuxmail.lgsinc.com (unknown [12.22.4.163]) by postgresql.org (Postfix) with ESMTP id 7AACE475EBD for ; Thu, 29 Aug 2002 21:35:15 -0400 (EDT) Received: from timetop ([10.13.15.254]) by linuxmail.lgsinc.com (8.11.6/8.8.7) with SMTP id g7U1ZgU14637; Thu, 29 Aug 2002 18:35:42 -0700 Date: Thu, 29 Aug 2002 18:36:26 -0400 From: Tim Ellis To: David Wheeler Cc: pgsql-admin@postgresql.org Subject: Re: Silencing NOTICEs in Perl Pg Message-Id: <20020829183626.65ad41d4.Tim.Ellis@gamet.com> In-Reply-To: <7B2DC566-BBAF-11D6-B671-0003931A964A@wheeler.net> References: <20020829200201.GA27531@wolff.to> <7B2DC566-BBAF-11D6-B671-0003931A964A@wheeler.net> Organization: Gamet X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i586-mandrake-linux-gnu) X-WerdupHomey: 3.14159265358979323 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/393 X-Sequence-Number: 5507 > 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.