[chuck-users] redirecting console output
eduard
eduard.aylon at gmail.com
Sat Jan 28 07:35:51 EST 2006
Thanks Ge,
It does help.
I had tried ./chuck foo.ck > foo.txt and also while(cin>>c)
file<<c. But that didn't help, because of writing to stderr.
./chuck foo.ck >& foo.txt works perfectly.
Thanks
On 28 Jan 2006, at 05:00, Ge Wang wrote:
> Greetings,
>
>> Is there a way to redirect the std output to a text file?
>
> To direct stdout to file:
>
> %> chuck foo.ck > foo.txt
>
> However, I believe ChucK is only writing to stderr at the moment,
> even <<< >>>, so you would need a slightly different redirect:
>
> %> chuck foo.ck >& foo.txt
>
> This latter feature works almost everywhere except for Windows/DOS.
> If you want to do this on Windows, you will need cygwin.
>
>> I'd like to use chuck to annotate songs, i.e. when I hear a kick a
>> press a midi keyboard and I tell chuck to output the elapsed time
>> to the console. I'd like to write this output to a text file, but I
>> haven't succeed.
>
> Cool! We are sorry that file I/O still doesn't exist except for
> audio files. However, we are working on it.
>
> Hope this helps.
>
> Best,
> Ge!
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
More information about the chuck-users
mailing list