X-Original-To: pgsql-admin@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 0D4559264F2 for ; Mon, 2 Jun 2003 14:30:38 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 55395-09 for ; Mon, 2 Jun 2003 14:30:26 -0400 (EDT) Received: from web21103.mail.yahoo.com (web21103.mail.yahoo.com [216.136.227.105]) by developer.postgresql.org (Postfix) with SMTP id EB3BD9264FB for ; Mon, 2 Jun 2003 14:29:59 -0400 (EDT) Message-ID: <20030602182959.26575.qmail@web21103.mail.yahoo.com> Received: from [208.253.218.33] by web21103.mail.yahoo.com via HTTP; Mon, 02 Jun 2003 11:29:59 PDT Date: Mon, 2 Jun 2003 11:29:59 -0700 (PDT) From: Shankar K Subject: capture vacuumdb verbose output To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new X-Archive-Number: 200306/10 X-Sequence-Number: 9001 hi there, 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 ------------------------------------------------------------- Begin vacuum/analyze db at Mon Jun 2 10:37:29 PDT 2003 Vacuuming test SET autocommit TO 'on';SET vacuum_mem to 51200;VACUUM VERBOSE ANALYZE VACUUM Vacuuming template1 SET autocommit TO 'on';SET vacuum_mem to 51200;VACUUM VERBOSE ANALYZE VACUUM Vacuum / Analyze db successful. End vacuum/analyze db at Mon Jun 2 10:37:32 PDT 2003 ------------------------------------------------------------- .. echo "-------------------------------------------------------------" > $LOGS_DIR/$log_filename echo "Begin vacuum/analyze db at `date`" >> $LOGS_DIR/$log_filename $PGSQL_HOME/bin/vacuumdb -e -a -z -v >> $LOGS_DIR/$log_filename ... so how to log the verbose output to a file. i tried 2>logfile, but that didn't work the way i want it to. any ideas is really appreciated. Shankar __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com