[PD] pd window messages

Hans-Christoph Steiner hans at eds.org
Fri Apr 28 11:37:13 CEST 2006


On Apr 28, 2006, at 9:18 AM, IOhannes m zmoelnig wrote:

> Andrew Cole wrote:
>> Hi,
>> Does anyone know of a way to grab messages that are printed to the PD
>> window, for example if a sound file has a bad header or an object  
>> fails
>> to load?
>
> use "-stderr" to dump them to the standard error, then redirect the
> stderr to stdout then pipe it to whereever you want.
>
> i admit that this is not really trivial.
> this should give you a start:
>
>
> pd -stderr -verbose 2>&1 | while read line
> do
>   echo "${line};" | pdsend 6666 localhost udp
> done
>
>
> you can then fetch everything that is printed via a udp-listener on  
> port
> 6666, either via pdreceive (which might be kind of pointless in this
> case) or via [netreceive] in either a separate pd-task or in the very
> same pd-task; be aware of feedbacks then!
> and of course you have no console any more...


That would be a nice script to have in /scripts/ with a matching patch.

.hc

________________________________________________________________________ 
____

News is what people want to keep hidden and everything else is  
publicity.
                                                                         
                       - Bill Moyers





More information about the Pd-list mailing list