Jonathan Gardner | 4 Jun 2003 17:24

Re: capture vacuumdb verbose output


On Monday 02 June 2003 12:25, Tom Lane wrote:
> Shankar K <shan0075 <at> yahoo.com> writes:
> > i'm trying to log the verbose output of vaccumdb to a
> > file along with other details, but i only end up with
> > logging this
>
> I think that output will go to stderr.
>

From Bash, you can use the common idiom "2>&1".

# the_command 2>&1 >> the_logfile

This will capture stderr as well as stdout.

--

-- 
Jonathan Gardner <jgardner <at> jonathangardner.net>
(was jgardn <at> alumni.washington.edu)
Live Free, Use Linux!

Gmane