Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Unbuffered Output

Date2005-01-25 14:36
From"gogins@pipeline.com"
SubjectRe: [Cs-dev] Unbuffered Output
I understand your point with the utilities. However this is a problem with
Csound itself. Some consoles won't print stderr. Some people prefer to pipe
all Csound messages to a file; I don't know how to pipe both stdout and
stderr to the same file. We could #ifdef this so the stub library prints
output to stdout and messages to stderr, and the csound library prints both
messages and output to stdout.

Original Message:
-----------------
From: Anthony Kozar anthony.kozar@utoledo.edu
Date: Tue, 25 Jan 2005 02:55:09 -0500
To: csound-devel@lists.sourceforge.net
Subject: Re: [Cs-dev] Unbuffered Output


On 1/24/05 7:58 AM, Michael Gogins  etched in stone:

> I would also prefer it if
> all console output went to stdout and none at all to stderr.

I don't think that this will work correctly with some of the utilities
(scsort, cscore, perhaps others) which send their output to stdout (the
sorted score) and any messages to stderr.

Anthony Kozar
anthony.kozar@utoledo.edu
http://akozar.spymac.net/



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-01-25 16:03
FromDave Seidel
SubjectRe: [Cs-dev] Unbuffered Output
foo >out 2>&1

Works on (recent versions of) Windows as well as bash et al.

- Dave


gogins@pipeline.com wrote:
> I don't know how to pipe both stdout and stderr to the same file.



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-01-26 01:06
FromAnthony Kozar
SubjectRe: [Cs-dev] Unbuffered Output
On 1/25/05 9:36 AM, gogins@pipeline.com  etched in
stone:

> I understand your point with the utilities. However this is a problem with
> Csound itself. Some consoles won't print stderr.

OK.  I guess my question then is which messages are going to which place and
what is the rational for the separation?  What possible advantages (if any)
would we be losing by doing this?

> Some people prefer to pipe
> all Csound messages to a file;

hmmm ... this seems to work OK for me ... or at least I don't remember a
problem.

Isn't printf redefined as err_printf anyways?  And does this become a moot
point in Cs5 when using the Message callbacks in the API?

Sorry, I am not too familiar with all of the specifics.

> I don't know how to pipe both stdout and
> stderr to the same file. We could #ifdef this so the stub library prints
> output to stdout and messages to stderr, and the csound library prints both
> messages and output to stdout.

I could probably live with this change.  Cannot anticipate any problems at
this moment.

Anthony Kozar
anthony.kozar@utoledo.edu
http://akozar.spymac.net/



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net