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 <[email protected]> wrote: >> ----- 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 >> > > 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 _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
