[PD] Send Key Commands to PD w/ -nogui without X (from console)
Jonathan Wilkes
jancsika at yahoo.com
Thu Mar 14 21:27:44 CET 2013
----- Original Message -----
> From: me.grimm <megrimm at gmail.com>
> To: Jonathan Wilkes <jancsika at yahoo.com>
> Cc: James Dunn <james at 4thharmonic.com>; pd_list Listserve <pd-list at iem.at>
> Sent: Thursday, March 14, 2013 3:47 PM
> Subject: Re: [PD] Send Key Commands to PD w/ -nogui without X (from console)
>
>> 3) 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
More information about the Pd-list
mailing list