<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    your problem must come from the "application saved state" ie Resume.<br>
    see:<br>
<a class="moz-txt-link-freetext" href="http://puredata.info/docs/faq/help-pd-crashes-on-startup-on-mac-osx-10-7">http://puredata.info/docs/faq/help-pd-crashes-on-startup-on-mac-osx-10-7</a><br>
<a class="moz-txt-link-freetext" href="http://osxdaily.com/2011/07/31/disable-resume-specific-applications-mac-os-x-lion/">http://osxdaily.com/2011/07/31/disable-resume-specific-applications-mac-os-x-lion/</a><br>
    n<br>
    <br>
    <div class="moz-cite-prefix">Le 26/08/2015 11:14, Csaba Láng a
      écrit :<br>
    </div>
    <blockquote
cite="mid:CABF=eXB0n3xR9N+ZKNxWhK+r-Gkwb1823D9+0jCbhSzCKJJOnA@mail.gmail.com"
      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
              moz-do-not-send="true" href="mailto:zmoelnig@iem.at"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a></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 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 class="HOEnZb"><font color="#888888">IOhannes<br>
                <br>
              </font></span><br>
            _______________________________________________<br>
            <a moz-do-not-send="true" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a>
            mailing list<br>
            UNSUBSCRIBE and account-management -> <a
              moz-do-not-send="true"
              href="http://lists.puredata.info/listinfo/pd-list"
              rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a></a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.nimon.org">http://www.nimon.org</a></pre>
  </body>
</html>