<div dir="ltr">Nicolas,<div><br></div><div>sounds reasonable, I give a try today. Thanks for the hint!</div><div><br></div><div>Popesz</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 26, 2015 at 12:51 PM, Nicolas Montgermont <span dir="ltr"><<a href="mailto:nicolas_montgermont@yahoo.fr" target="_blank">nicolas_montgermont@yahoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
your problem must come from the "application saved state" ie Resume.<br>
see:<br>
<a href="http://puredata.info/docs/faq/help-pd-crashes-on-startup-on-mac-osx-10-7" target="_blank">http://puredata.info/docs/faq/help-pd-crashes-on-startup-on-mac-osx-10-7</a><br>
<a href="http://osxdaily.com/2011/07/31/disable-resume-specific-applications-mac-os-x-lion/" target="_blank">http://osxdaily.com/2011/07/31/disable-resume-specific-applications-mac-os-x-lion/</a><br>
n<div><div class="h5"><br>
<br>
<div>Le 26/08/2015 11:14, Csaba Láng a
écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr">Thanks Iohannes,
<div><br>
<div>will give a try, but anyway it already happened not the
first time to me.</div>
<div>Last time I had 3 identical mac minis with the same
system image on each. 2 could run the script without
problem, but the 3rd did not. The problem is especially with
GEM, as in this case I have double lights turned on and
everything is too bright.</div>
<div>Anyway, this should work automatically as the
installation is permanent in a museum.</div>
<div>Will get back to you soon.</div>
<div><br>
</div>
<div>Popesz </div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Aug 25, 2015 at 11:00 PM,
IOhannes m zmölnig <span dir="ltr"><<a href="mailto:zmoelnig@iem.at" target="_blank"></a><a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 08/25/2015 10:53 PM, Csaba Láng wrote:<br>
> Dear list,<br>
> is there a way to avoid that a patch which is run
from a script either from<br>
> crontab or just autorun from the system runs twice?<br>
> I heard about --no-gui solution, but never managed to
use it on Mac.<br>
<br>
</span>i don't know how "--no-gui" is supposed to help you
here.<br>
it only might obfuscate the fact that two instances are
running...<br>
<br>
<br>
i can think of two simple ways to avoid double runs:<br>
- setup a shared-ressource (a lock-file): when the script
starts it<br>
checks for the lock-file; if it is not there, it will create
the lock,<br>
launch Pd; once Pd is finished it will remove the lock;<br>
if the lock *is* there, the script will exit immediately.<br>
see flock(1) on linux and shlock(1) on osx.<br>
<br>
- stop all running instances of the patch before starting
it.<br>
usually you would just do something along the lines of
`pkill -KILL pd`,<br>
before starting a new instance of Pd.<br>
<br>
fmasdr<br>
<span><font color="#888888">IOhannes<br>
<br>
</font></span><br>
_______________________________________________<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" rel="noreferrer" target="_blank"></a><a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a>
</pre>
</blockquote>
<br>
</div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">--
<a href="http://www.nimon.org" target="_blank">http://www.nimon.org</a></pre>
</font></span></div>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>