nolan@celery.tssi.com wrote:
> > nolan@celery.tssi.com writes:
> > > Is it too late to suggest that there be a way to have output displayed
> > > on screen AND output to a file?
> >
> > tee perhaps?
>
> Tee ALMOST does it. Try doing a \d while tee'ing the output, for example.
Try using "script" (start it from the shell before invoking psql).
It sounds like it'll do much of what you're after.
"Screen" also has a logging option which may work just as well, if not
better, than "script", and has the additional advantage that the session
will continue (and can be reattached to) even if your terminal window
dies for whatever reason.
--
Kevin Brown kevin@sysexperts.com