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.
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 2>&1 | while read line do echo "${line};" | pdsend 6666 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
hi marius
forget about my solution i posted before. i forgot that netreceive wants every message terminated with a ';'.
anyway, IOhannes' solution seems to be much better. nevermind.
roman
On Fri, 2006-12-08 at 17:57 +0100, IOhannes m zmoelnig wrote:
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 2>&1 | while read line do echo "${line};" | pdsend 6666 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
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
seems to work pretty fine! thank you. marius.
2006/12/8, IOhannes m zmoelnig zmoelnig@iem.at:
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 2>&1 | while read line do echo "${line};" | pdsend 6666 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
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 2>&1 | 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