Hi, I'm working with Windows and I have a problem with PD. I'd like to call pd | anotherProgram to read from the standard output stream into the input stream of another program (in Java in my case), but it doesn't work...
Also this example: pd > fileName is not working from the dos console, and I don't understand why...
Can you please tell me if there are any command-line parameters for PD to do that, or some other trick... :)
Thanks a lot, Andrea
Hi Andrea, the problem is that PD prints to stderr (the standard error output) rather than to stdout, which would be needed for redirection. I'm not sure if there is a way to redirect stderr in Windows.
Just in case you want to do a bit of programming: For this and other applications i introduced a print hook functionality to the PD cvs version devel_0_37 (functions sys_addprinthook and sys_rmprinthook) which can be used from PD externals to catch the console output.
best greetings, Thomas
Am 02.12.2003 um 09:56 schrieb Andrea Valente:
Hi, I'm working with Windows and I have a problem with PD. I'd like to call pd | anotherProgram to read from the standard output stream into the input stream of another program (in Java in my case), but it doesn't work...
Also this example: pd > fileName is not working from the dos console, and I don't understand why...
Can you please tell me if there are any command-line parameters for PD to do that, or some other trick... :)
Thanks a lot, Andrea
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
On Tue, Dec 02, 2003 at 10:18:00AM +0100, Thomas Grill wrote:
Hi Andrea, the problem is that PD prints to stderr (the standard error output) rather than to stdout, which would be needed for redirection. I'm not sure if there is a way to redirect stderr in Windows.
Maybe it'd work as in *nix if PD is started from a Cygwin bash shell: pd 2>&1 -- Marc
I read:
I'd like to call pd | anotherProgram to read from the standard output stream into the input stream of another program (in Java in my case), but it doesn't work...
pd prints to stderr and '|' or '>' redirect stdout so on unix you'd do sth. like: $ pd 2>&1 | your_program don't know about windos, but there's bash in cygwin
HTH
x
I read:
I'm working with Windows and I have a problem with PD. I'd like to call pd | anotherProgram
I just might add, why on earth you want to do that, pardon me, but go use sockets or textfile or OSC or whatnot to get the messages over instead of using [print] or post or is there a reason this won't do what you're trying to accomplish (producing/parsing a log of pd's startup messages f.i.) ?
BTW your mail account seems to have some weirdness (or the MTA just denies relaying from my adress)
regards,
x