<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>On Ubuntu, I call my startup script in ~/.bash_profile and my shutdown/cleanup script in ~/.bash_logout.</div><div><br></div><div>Also, you will need to put ". .bashrc" at the beginning of the .bash_profile so all the default shell settings will be setup when it is called.</div><br><div><div>On Feb 17, 2010, at 10:49 AM, Bart Koppe wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Ben,<br><br>I would like the script to be respawnd, in the rare case the script might crash. Afaik putting it in .xsessions only cares of starting the script, right?<br><br>Chrs,<br>bart<br><br><br>On 02/17/2010 04:35 AM, B. Bogart wrote:<br><blockquote type="cite">Hey Bart,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Put the PD startup stuff in your ~/.xsession, and configure your display manager to use xsession. (eg chosee 'Xclient script' in GDM)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">.b.<br></blockquote><blockquote type="cite">Bart Koppe wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite">Hi,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I use PD-extended in Debian Lenny, this for a small media-installation.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">After the pc boots and logged into X, i would like pd (with gui) to start automatically.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I made the script below and wanted to use that in /etc/inittab. It seems to start as root and does not show a gui either.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">The script itself works perfectly ok when I run it myself.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">How can I configure inittab correctly so it runs as user instead of root, and shows the gui to?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">My current inittab entry [to say: I don't know anything about inittab (blush) ]<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">TY:23:respawn:/home/abortx/pd-daemon.sh<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">the script (pd-daemon.sh)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">#!/bin/sh<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">RUNNING=<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">export DISPLAY=:0.0<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">pd -open /home/abortx/pd/pdp-gem-bridge-3.pd &amp;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">while true; do<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">RUNNING=`pidof pd`<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">if [ -z $RUNNING ]; then<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">pd -open /home/abortx/pd/pdp-gem-bridge-3.pd &amp;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">fi<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">sleep 10<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">done<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Thanks!<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Bart<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">-- <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">-----/\/\/\/\/\/\-----<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Bart Koppe<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">bk at a-bort dot org<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://a-bort.org">http://a-bort.org</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">-----\/\/\/\/\/\/-----<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I love deadlines. I like the whooshing sound they make as they fly by.≈?¬- Douglas Adams<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br></blockquote></blockquote><br><br><br><br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; 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; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); 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 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></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>