Csound Csound-dev Csound-tekno Search About

[Csnd] saving csound's log to a text file

Date2013-03-20 16:55
FromaaB
Subject[Csnd] saving csound's log to a text file
AttachmentsNone  

Date2013-03-20 17:07
FromJustin Smith
SubjectRe: [Csnd] saving csound's log to a text file
facebook does not print to stdout, because that way it is possible to pipe audio data to another program in a shell via stdout

you need to redirect stderr as follows:
csound <args> 2>&1 | <next program>

I do not know if there is a way to use | on only stderr rather than stdout, the above combines stderr into stdout and sends it all to the next program.


On Wed, Mar 20, 2013 at 9:55 AM, aaB <mecagonoisician@gmail.com> wrote:
Hello list,

How does one save csound's text output to a file?

I am running into errors while trying csd files and would like to save the
output in order to easily share the log.

I've tried the ">" operator without success, as in:

$csound filename.csd > filenamelog.txt

csound still outputs its log to the terminal (is it using stderr and not
stdout?).

I've searched the manual for a command line flag to do this, but haven't found
it.

Any pointers would be very welcome.

Alexandre


Csound cloned from git, doubles version, on a linux system.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2013-03-20 17:07
FromMichael Gogins
SubjectRe: [Csnd] saving csound's log to a text file
O FILE, --logfile=FILE
Log output to file FILE. If FILE is null (i.e. -O null or
--logfile=null) all printing of messages to the console is disabled.

-

On Wed, Mar 20, 2013 at 12:55 PM, aaB  wrote:
> Hello list,
>
> How does one save csound's text output to a file?
>
> I am running into errors while trying csd files and would like to save the
> output in order to easily share the log.
>
> I've tried the ">" operator without success, as in:
>
> $csound filename.csd > filenamelog.txt
>
> csound still outputs its log to the terminal (is it using stderr and not
> stdout?).
>
> I've searched the manual for a command line flag to do this, but haven't found
> it.
>
> Any pointers would be very welcome.
>
> Alexandre
>
>
> Csound cloned from git, doubles version, on a linux system.
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

Date2013-03-20 17:07
FromJustin Smith
SubjectRe: [Csnd] saving csound's log to a text file
ugh. crossed stream working on graphsearch at work :) I meant csound does not print to stdout


On Wed, Mar 20, 2013 at 10:07 AM, Justin Smith <noisesmith@gmail.com> wrote:
facebook does not print to stdout, because that way it is possible to pipe audio data to another program in a shell via stdout

you need to redirect stderr as follows:
csound <args> 2>&1 | <next program>

I do not know if there is a way to use | on only stderr rather than stdout, the above combines stderr into stdout and sends it all to the next program.


On Wed, Mar 20, 2013 at 9:55 AM, aaB <mecagonoisician@gmail.com> wrote:
Hello list,

How does one save csound's text output to a file?

I am running into errors while trying csd files and would like to save the
output in order to easily share the log.

I've tried the ">" operator without success, as in:

$csound filename.csd > filenamelog.txt

csound still outputs its log to the terminal (is it using stderr and not
stdout?).

I've searched the manual for a command line flag to do this, but haven't found
it.

Any pointers would be very welcome.

Alexandre


Csound cloned from git, doubles version, on a linux system.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2013-03-20 17:11
FromaaB
SubjectRe: [Csnd] saving csound's log to a text file [solved]
AttachmentsNone  

Date2013-03-20 17:14
FromJacob Joaquin
SubjectRe: [Csnd] saving csound's log to a text file
Can Csound6 please print to stdout? Pretty please. It's the right thing to do.


On Wed, Mar 20, 2013 at 10:07 AM, Justin Smith  wrote:
> ugh. crossed stream working on graphsearch at work :) I meant csound does
> not print to stdout
>
>
> On Wed, Mar 20, 2013 at 10:07 AM, Justin Smith  wrote:
>>
>> facebook does not print to stdout, because that way it is possible to pipe
>> audio data to another program in a shell via stdout
>>
>> you need to redirect stderr as follows:
>> csound  2>&1 | 
>>
>> I do not know if there is a way to use | on only stderr rather than
>> stdout, the above combines stderr into stdout and sends it all to the next
>> program.
>>
>>
>> On Wed, Mar 20, 2013 at 9:55 AM, aaB  wrote:
>>>
>>> Hello list,
>>>
>>> How does one save csound's text output to a file?
>>>
>>> I am running into errors while trying csd files and would like to save
>>> the
>>> output in order to easily share the log.
>>>
>>> I've tried the ">" operator without success, as in:
>>>
>>> $csound filename.csd > filenamelog.txt
>>>
>>> csound still outputs its log to the terminal (is it using stderr and not
>>> stdout?).
>>>
>>> I've searched the manual for a command line flag to do this, but haven't
>>> found
>>> it.
>>>
>>> Any pointers would be very welcome.
>>>
>>> Alexandre
>>>
>>>
>>> Csound cloned from git, doubles version, on a linux system.
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>



-- 
codehop.com | #code #art #music

Date2013-03-20 18:08
FromJustin Smith
SubjectRe: [Csnd] saving csound's log to a text file
after a little more digging, I have discovered that the following should make csound's stderr and stdout swap places using a unix shell

csound [args] 3>&1 1>&2 2>&3

this is ugly, but it basically swaps csounds stdout and stderr without mixing the two, so that you can pipe or redirect what csound sent to stderr without mixing it with stdout


On Wed, Mar 20, 2013 at 10:14 AM, Jacob Joaquin <jacobjoaquin@gmail.com> wrote:
Can Csound6 please print to stdout? Pretty please. It's the right thing to do.


On Wed, Mar 20, 2013 at 10:07 AM, Justin Smith <noisesmith@gmail.com> wrote:
> ugh. crossed stream working on graphsearch at work :) I meant csound does
> not print to stdout
>
>
> On Wed, Mar 20, 2013 at 10:07 AM, Justin Smith <noisesmith@gmail.com> wrote:
>>
>> facebook does not print to stdout, because that way it is possible to pipe
>> audio data to another program in a shell via stdout
>>
>> you need to redirect stderr as follows:
>> csound <args> 2>&1 | <next program>
>>
>> I do not know if there is a way to use | on only stderr rather than
>> stdout, the above combines stderr into stdout and sends it all to the next
>> program.
>>
>>
>> On Wed, Mar 20, 2013 at 9:55 AM, aaB <mecagonoisician@gmail.com> wrote:
>>>
>>> Hello list,
>>>
>>> How does one save csound's text output to a file?
>>>
>>> I am running into errors while trying csd files and would like to save
>>> the
>>> output in order to easily share the log.
>>>
>>> I've tried the ">" operator without success, as in:
>>>
>>> $csound filename.csd > filenamelog.txt
>>>
>>> csound still outputs its log to the terminal (is it using stderr and not
>>> stdout?).
>>>
>>> I've searched the manual for a command line flag to do this, but haven't
>>> found
>>> it.
>>>
>>> Any pointers would be very welcome.
>>>
>>> Alexandre
>>>
>>>
>>> Csound cloned from git, doubles version, on a linux system.
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>



--
codehop.com | #code #art #music


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"