title: Run a shell script periodically on Mac OS X without root permission
body: <p>I want to start up a file with .sh type or .py on mac os x without using root ,
  I searched in google and found launchctl can help me ,</p>
  
  <p>so i read tutorial and do same in tutorial but it not work for me , [i using mac os x 10.9 x64]</p>
  
  <p>My .plist file [run 1.sh file in every 60second] :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
  &lt;plist version="1.0"&gt;
  &lt;dict&gt;
    &lt;key&gt;Label&lt;/key&gt;
    &lt;string&gt;com.alvin.crontabtest&lt;/string&gt;
    &lt;key&gt;ProgramArguments&lt;/key&gt;
    &lt;array&gt;
      &lt;string&gt;/Users/paul/Desktop/1.sh&lt;/string&gt;
    &lt;/array&gt;
    &lt;key&gt;Nice&lt;/key&gt;
    &lt;integer&gt;1&lt;/integer&gt;
    &lt;key&gt;StartInterval&lt;/key&gt;
    &lt;integer&gt;60&lt;/integer&gt;
    &lt;key&gt;RunAtLoad&lt;/key&gt;
    &lt;true/&gt;
    &lt;key&gt;StandardErrorPath&lt;/key&gt;
    &lt;string&gt;/tmp/AlTest1.err&lt;/string&gt;
    &lt;key&gt;StandardOutPath&lt;/key&gt;
    &lt;string&gt;/tmp/AlTest1.out&lt;/string&gt;
  &lt;/dict&gt;
  &lt;/plist&gt;
  </code></pre>
  
  <p>source of 1.sh: </p>
  
  <pre><code>echo '+' &gt;&gt; /Users/paul/Desktop/worked.txt
  </code></pre>
  
  <p>I put Run.plist in /Users/paul/Run.plist</p>
  
  <p>and run command from terminal :</p>
  
  <pre><code>launchctl load /Users/paul/Run.plist
  Launchctl start com.alvin.crontabtest
  </code></pre>
  
  <p>commands execute without any error but i not see
  anything in worked.txt </p>
  
  <p>can anyone help me please ?</p>