Le 14/03/2013 21:38, me.grimm a écrit :
hey! that was pretty brilliant!
now w/ -stderr also prints to terminal:
(pd -nogui -stderr -open netreceive-help.pd &); sleep 5 && pdsend 3000
Maybe there's a shell guru here who can tell you how to wrap it up in a script that automatically sends messages on each keydown event. :)
yes!
m
On Thu, Mar 14, 2013 at 4:27 PM, Jonathan Wilkes jancsika@yahoo.com wrote:
----- Original Message -----
From: me.grimm megrimm@gmail.com To: Jonathan Wilkes jancsika@yahoo.com Cc: James Dunn james@4thharmonic.com; pd_list Listserve pd-list@iem.at Sent: Thursday, March 14, 2013 3:47 PM Subject: Re: [PD] Send Key Commands to PD w/ -nogui without X (from console)
- the 'pdsend' program waits for FUDI input
this might be the best solution for now until i take a look into the shell scripting you suggested. although, how to make it all on one line (one command). Variations in this:
megrimm-mbp:~ megrimm$ (pd -open netreceive-help.pd &) ; (pdsend 3000)
fail or me.
I don't understand networking very well, but it looks like the netreceive has to bind to the port first, and I think your script only waits until pd process sucessfully starts (i.e., doesn't wait for it to load the patch) before doing 'pdsend'.
Quick and dirty: (pd -open netreceive-help.pd &); sleep 5 && pdsend 3000
That way pdsend waits five seconds before executing, and the patch should be loaded by then.
Maybe there's a shell guru here who can tell you how to wrap it up in a script that automatically sends messages on each keydown event. :)
-Jonathan
Hello,
Something like : $ pd send "startup A B C" /path/to/your/patch.pd should work if you have somewhere in your patch.pd a [r startup]. ++
Jack