X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BF08D14B28C0 for ; Thu, 12 Aug 2004 12:13:26 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 49390-04 for ; Thu, 12 Aug 2004 15:13:24 +0000 (GMT) Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by svr1.postgresql.org (Postfix) with ESMTP id 0499D14B2820 for ; Thu, 12 Aug 2004 12:13:23 -0300 (ADT) Received: from mailgate.bray-healthcare.com ([80.177.250.202] helo=solport.bray-healthcare.com) by anchor-post-32.mail.demon.net with esmtp (Exim 3.35 #1) id 1BvHGc-000LXa-0W; Thu, 12 Aug 2004 15:13:22 +0000 Received: from braydb.bray-healthcare.com ([192.168.1.18]) by solport.bray-healthcare.com with esmtp (Exim 3.36 #1 (Debian)) id 1BvHGc-0007kv-00; Thu, 12 Aug 2004 16:13:22 +0100 Subject: Re: Sending errors from psql to error file From: Oliver Elphick To: devin@synapticvision.com Cc: pgsql-sql@postgresql.org In-Reply-To: <1092323361.11184.34.camel@braydb> References: <1092320416.23985.24.camel@192.168.1.80> <1092322233.11188.30.camel@braydb> <1092322881.23985.38.camel@192.168.1.80> <1092323361.11184.34.camel@braydb> Content-Type: text/plain Organization: Bray Health and Leisure Message-Id: <1092323602.11182.39.camel@braydb> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 12 Aug 2004 16:13:22 +0100 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/129 X-Sequence-Number: 18626 On Thu, 2004-08-12 at 16:09, Oliver Elphick wrote: > "2>" redirects standard error I forgot to say "&1" means the file open on file descriptor 1, which is always standard output. So "2>&1" means send standard error to standard output, so that a pipe (which just takes standard output) can see the errors as well. All that you can find in the man page for bash or sh or whatever your shell is. (If you used csh or tcsh, I think the syntax would be different.) Oliver