From: Oliver Elphick <olly@bray-healthcare.com>
To: devin@synapticvision.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Sending errors from psql to error file
Date: Thu, 12 Aug 2004 16:13:22 +0100
Message-ID: <1092323602.11182.39.camel@braydb> (raw)
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>
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
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: olly@bray-healthcare.com, devin@synapticvision.com
Subject: Re: Sending errors from psql to error file
In-Reply-To: <1092323602.11182.39.camel@braydb>
* 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