pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedCapturing output of vacuumdb and pg_dump
2+ messages / 2 participants
[nested] [flat]
* Capturing output of vacuumdb and pg_dump
@ 2003-04-12 17:18 Matt Mello <alien@spaceship.com>
0 siblings, 1 reply; 2+ messages in thread
From: Matt Mello @ 2003-04-12 17:18 UTC (permalink / raw)
To: pgsql-admin
Hello, all.
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?
Thanks!
--
Matt Mello
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Capturing output of vacuumdb and pg_dump
@ 2003-04-12 17:25 Tom Lane <tgl@sss.pgh.pa.us>
parent: Matt Mello <alien@spaceship.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2003-04-12 17:25 UTC (permalink / raw)
To: alien@spaceship.com; +Cc: pgsql-admin
"Matt Mello" <alien@spaceship.com> 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-04-12 17:25 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-12 17:18 Capturing output of vacuumdb and pg_dump Matt Mello <alien@spaceship.com>
2003-04-12 17:25 ` Tom Lane <tgl@sss.pgh.pa.us>
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