Re: How to pipe the psql copy command to Unix 'Date' command

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to pipe the psql copy command to Unix 'Date' command
Date: 2009-03-02 23:58:13
Message-ID: 49AC7295.60006@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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...

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Smith 2009-03-03 00:05:00 Re: Detemine database size on Postgres 8.0
Previous Message shadrack 2009-03-02 23:33:30 php4 and postgresql 8.3