Re: [PD] pd console output within pd

2006-12-08 Thread Roman Haefeli
hi marius

just to give you a hint (i didn't try it out):

start pd with the '-stderr' flag and pipe stderr to pdsend, which sends
the data to a [netreceive] in your patch.

pd -stderr 21 | pdsend 1234

in the patch:

[netreceive 1234]

i hope it works

roman


On Fri, 2006-12-08 at 11:33 -0500, marius schebella wrote:
 hi,
 I am thinking of a possibility to get the console output back into pd. I 
 have a remote patch on a client machine that can open video files and I 
 want to send the success or error message to the server through osc.
 Is it possible to get the console output back into pd?
 is it possible to grab the console output in any other way?
 marius.
 
 ___
 PD-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list






___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pd console output within pd

2006-12-08 Thread marius schebella

seems to work pretty fine!
thank you.
marius.

2006/12/8, IOhannes m zmoelnig [EMAIL PROTECTED]:

marius schebella wrote:
 hi,
 I am thinking of a possibility to get the console output back into pd. I
 have a remote patch on a client machine that can open video files and I
 want to send the success or error message to the server through osc.
 Is it possible to get the console output back into pd?
 is it possible to grab the console output in any other way?
 marius.


a quick hack using FUDI:

#!/bin/sh
pd -verbose -stderr 21 | while read line
  do echo ${line}; | pdsend  localhost udp
done


but of course it would be better to get the information you want
directly instead of parsing the console output.
e.g. the 2nd outlet of [pix_film] gives you some information of how well
it succeeded to open a video file.


mfg.asdr
IOhannes



___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list