[ale] redirection stupids

Jim Kinney jim.kinney at gmail.com
Mon Oct 19 13:11:07 EDT 2009


bingo. parens are my friend!

final form:

(time psql<input.sql >outpustfromsql) 2>timeout

On Mon, Oct 19, 2009 at 12:41 PM, Richard Bronosky <Richard at bronosky.com> wrote:
> (time cat - <.bashrc) 1>/tmp/1 2>/tmp/2
>
>
> On Mon, Oct 19, 2009 at 12:17 PM, Chris Fowler
> <cfowler at outpostsentinel.com> wrote:
>> does this work
>> time psql <input.sql 1>outputfromsql 2>timeoutfile
>>
>> On Mon, 2009-10-19 at 11:44 -0400, Jim Kinney 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.
>>>
>>> --
>>
>> _______________________________________________
>> 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
>>
>
>
>
> --
> .!# RichardBronosky #!.
> _______________________________________________
> 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
>



-- 
-- 
James P. Kinney III
Actively in pursuit of Life, Liberty and Happiness


More information about the Ale mailing list