----- Original Message -----

> From: me.grimm <[email protected]>
> To: Jonathan Wilkes <[email protected]>
> Cc: James Dunn <[email protected]>; pd_list Listserve <[email protected]>
> 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


_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to