X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A801A476128 for ; Sat, 12 Apr 2003 13:25:46 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id E5E1F475F26 for ; Sat, 12 Apr 2003 13:25:45 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h3CHPv2L018874; Sat, 12 Apr 2003 13:25:57 -0400 (EDT) To: alien@spaceship.com Cc: pgsql-admin@postgresql.org Subject: Re: Capturing output of vacuumdb and pg_dump In-reply-to: <39047.24.243.214.140.1050167917.squirrel@earth.spaceship.com> References: <39047.24.243.214.140.1050167917.squirrel@earth.spaceship.com> Comments: In-reply-to "Matt Mello" message dated "Sat, 12 Apr 2003 12:18:37 -0500" Date: Sat, 12 Apr 2003 13:25:57 -0400 Message-ID: <18873.1050168357@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-32.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/207 X-Sequence-Number: 8362 "Matt Mello" writes: > I am a linux shell [bash/sh] newbie. I want to capture the output of the > vacuumdb and pg_dump commands to a log file. I want all of the lines that > are normally displayed on the screen to be *appended* to a single log file > that I can inspect offline at my convenience. I have discovered that > ">>logfile" won't get all of the data. Can someone point me to an example > of how to do that? You're missing stderr. On sh/bash type shells you want foo >>logfile 2>&1 There is some other locution on csh and its descendants, but I forget what. regards, tom lane