<html><head><base href="x-msg://91/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 25, 2010, at 6:55 PM, Andrew Faraday wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">Hey All<div><br></div><div>I've recently started learning Ruby (on Ubuntu 9.04), part of what I'm trying to do is control PD through ruby, using the terminal.&nbsp;</div><div>The main trouble I'm having now is that I'm mostly using a Mac OS X machine which doesn't recognize the 'pdsend' and 'pdreceive' commands (as the linux shell does). I've tried opening the files with these names in /resources/bin which open a new terminal window and display what looks like the relevant -help text. But I can't seem to use these to send messages to and from pd from the Mac OS terminal. (in theory I could then automate this with Ruby).&nbsp;</div><div><br></div><div>Any ideas, at all?</div></div></span></blockquote><br></div><div>I had the same issue when trying to use some scripts I made in Linux with pd. I solved it by adding some function wrappers to my ~/.bash_profile:</div><div><br></div><div><div># pd commandline</div><div>function pd {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Applications/Pd-extended.app/Contents/Resources/bin/pd $@;</div><div>}</div><div>export -f pd</div><div><br></div><div>function pdsend {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Applications/Pd-extended.app/Contents/Resources/bin/pdsend $@;</div><div>}</div><div>export -f pdsend</div></div><div><br></div><div>Make sure to restart the terminal session for it to take effect.</div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--------</div><div>Dan Wilcox</div><div><a href="http://danomatika.com">danomatika.com</a></div><div><a href="http://robotcowboy.com">robotcowboy.com</a></div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></body></html>