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

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: How to pipe the psql copy command to Unix 'Date' command
Дата
Msg-id 49AC7295.60006@hogranch.com
обсуждение исходный текст
Ответ на Re: How to pipe the psql copy command to Unix 'Date' command  (SHARMILA JOTHIRAJAH <sharmi_jo@yahoo.com>)
Ответы Re: How to pipe the psql copy command to Unix 'Date' command  (Alan Hodgson <ahodgson@simkin.ca>)
Список 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 по дате отправления:

Предыдущее
От: shadrack
Дата:
Сообщение: php4 and postgresql 8.3
Следующее
От: Greg Smith
Дата:
Сообщение: Re: Detemine database size on Postgres 8.0