[ale] redirection stupids

Björn Gustafsson bg-ale at bjorng.net
Mon Oct 19 12:46:45 EDT 2009


Try /usr/bin/time instead of the shell built-in, or enclose your
statement in parens before redirecting the output.

On Mon, Oct 19, 2009 at 11:44 AM, Jim Kinney <jim.kinney at gmail.com> wrote:
> I'm trying to collect the output from time to a file. For an unknown
> reason I have managed to not do the simple redirection process right.
>
> time psql <input.sql >outputfromsql 2>timeoutfile
>
> timeoutfile is created but empty.
>
> according to man 1 time the output is to stderr which _should_still_ be 2.
>
> time 2>timeoutfile psql <input.sql >outputfromsql
> does the same thing.
>
> --
> --
> James P. Kinney III
> Actively in pursuit of Life, Liberty and Happiness
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>



-- 
Björn Gustafsson



More information about the Ale mailing list