[OSC_dev] No dumpOSC output in pipe in non-interactive terminal

Torsten Anders torsten.anders at plymouth.ac.uk
Sat Sep 8 11:36:43 PDT 2007


On Sep 8, 2007, at 1:54 AM, Angelo Fraietta wrote:
> Torsten Anders wrote:
>> Thanks for coming back.
>> On Sep 8, 2007, at 12:53 AM, Angelo Fraietta wrote:
>>> I am not suggesting you don't. I am just stating what I did.
>>> If it does work for you, it looks like it would be a great method.
>> ;-) Unfortunately, it doesn't -- at least not out of the box. My   
>> question was 'why'...
> Have you tried looking in the source code and comparing what it  
> does to what you believe it should do.
>
> What you can do to debug is write some messages to stdout from  
> within OSCDump source, compile it, and see if you can pipe them to  
> your program

Thanks for your reply. Unfortunately, I don't understand why it  
doesn't work. For example, dumpOSC prints its optional greeting  
message simply with printf(), ie. to stdout. For printing OSC  
messages, the function Smessage calls fflush(stdout) after printf()  
to cause buffered output to be written (as fflush() is not called  
after the greeting, in a pipe this has the effect that the greeting  
is only printed after the first messaged arrived).

I can't see why dumpOSC seemingly refuses to show its output in a non- 
interactive terminal -- in contrast to virtually all UNIX commands. I  
should mention that I don't have much C programming experience..

Best
Torsten


>> Best
>> Torsten
>> -- 
>> Torsten Anders
>> Interdisciplinary Centre for Computer Music Research
>> University of Plymouth
>> http://strasheela.sourceforge.net
>> http://www.torsten-anders.de
>> _______________________________________________
>> OSC_dev mailing list
>> OSC_dev at create.ucsb.edu
>> http://www.create.ucsb.edu/mailman/listinfo/osc_dev
>
> -- 
> Dr Angelo Fraietta
> A.Eng, A.Mus.A, BA(Hons), Ph.D.
>
> PO Box 859
> Hamilton NSW 2303
>
> Home Page
>
>
> http://www.smartcontroller.com.au/~angelo/
>
> There are those who seek knowledge for the sake of knowledge - that  
> is CURIOSITY
> There are those who seek knowledge to be known by others - that is  
> VANITY
> There are those who seek knowledge in order to serve - that is LOVE
>     Bernard of Clairvaux (1090 - 1153)
>
> _______________________________________________
> OSC_dev mailing list
> OSC_dev at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/osc_dev

--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
http://strasheela.sourceforge.net
http://www.torsten-anders.de




More information about the OSC_dev mailing list