<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 6, 2015 at 1:46 PM, Simon Wise <span dir="ltr"><<a href="mailto:simonzwise@gmail.com" target="_blank">simonzwise@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
rc.local runs as root ... to launch pd use:<br>
<br>
sudo -u pi -i pd -nogui -noaudio -nomidi /share/master.pd &<br></blockquote><div>I don't get the /share/master.pd what is it supposed to do in this command? <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
or similar, here pi is the user, the & means pd runs in the background.<br>
<br>
I usually keep a script at /share/initialise then call it as user pi, it makes it a lot easier to keep different projects ans swap between them.<br></blockquote><div>there's no /share/initialise file or directory... should I create it? And then should I put my script there and call it from rc.local? For example 'sudo -u pi -i sh /share/initialise/launch_pd.sh' is any good (supposing I write a script called launch_pd.sh which launches Pd and open the desired patch...)?<br><br></div><div>I put 'sudo -u pi -i /usr/local/bin/pd -nogui -open ~/pd_patches/load_test.pd' in rc.local but again it didn't work... </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
Simon<br>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
</blockquote></div><br></div></div>