Re: How to pipe the psql copy command to Unix 'Date' command - Mailing list pgsql-general

From John R Pierce
Subject Re: How to pipe the psql copy command to Unix 'Date' command
Date
Msg-id 49AC7295.60006@hogranch.com
Whole thread Raw
In response to Re: How to pipe the psql copy command to Unix 'Date' command  (SHARMILA JOTHIRAJAH <sharmi_jo@yahoo.com>)
Responses Re: How to pipe the psql copy command to Unix 'Date' command  (Alan Hodgson <ahodgson@simkin.ca>)
List pgsql-general
SHARMILA JOTHIRAJAH wrote:
> Is it possible to sent this 'time' output to a file...
> If I try
> time cmd1 someargs1 | cmd2 someargs2 > output.log
>
> it doesn't sent the "time" to the file...
>

time (cmd1 someargs1 | cmd2 someargs2) > output.log


the way you had it, it was only timing cmd1.  with the ( ), its spawning
a subshell which should run both commands piped...



pgsql-general by date:

Previous
From: shadrack
Date:
Subject: php4 and postgresql 8.3
Next
From: Greg Smith
Date:
Subject: Re: Detemine database size on Postgres 8.0