title: Crontab | Missing Python Module
body: <p>I'm very new to Unix and crontab. The only major issue I'm running into is pointing terminal to the python modules for the specific program I'm trying to run. From command line the program runs fine but won't from crontab.</p>
  
  <p>The first cronjob sends me an email saying that the cronjob is running. The second(createUpdate) runs a script I've built, set to run each minute.</p>
  
  <p>crontab -l returns:</p>
  
  <pre><code>*/1 * * * * python /Users/JohnDoe/Desktop/emailalert.py
  */1 * * * * PYTHONPATH =/Library/Frameworks/Python.framework/Versions/Current/lib/python2.7/site-packages; export PYTHONPATH; python /Users/JohnDoe/Desktop/createUpdate.py 
  </code></pre>
  
  <p>Am I structuring PYTHONPATH correctly? </p>
  
  <p>Should I break it out before the cron?</p>
  
  <p>Is 'export PYTHONPATH' necessary?</p>
  
  <p><strong>EDIT</strong>
  I forgot to add the error</p>
  
  <pre><code>/bin/sh: PYTHONPATH: command not found
  Traceback (most recent call last):
    File "/Users/JohnDoe/Desktop/createUpdate.py", line 1, in &lt;module&gt;
      import beatbox
  ImportError: No module named beatbox
  </code></pre>