<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 6, 2015 at 5:12 PM, Claude Heiland-Allen <span dir="ltr"><<a href="mailto:claude@mathr.co.uk" target="_blank">claude@mathr.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 06/02/15 12:58, Alexandros Drymonitis wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I put 'sudo -u pi -i /usr/local/bin/pd -nogui -open<br>
~/pd_patches/load_test.pd' in rc.local but again it didn't work...<br>
</blockquote>
<br></span>
~/ gets expanded by the shell to the contents of ${HOME} before the sudo command is even executed, so it's going to be root's home, usually /root - (as recommended by others) launch pd from a script, and specify the full path to the script in your /etc/rc.local sudo command (avoid using ~/ or ${HOME}).<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div>That worked. Claude and Simon, you guys were right about this. Thanks a lot to all. <br></div></div><br></div></div>