title: run a crontab job using an anaconda env
body: <p>I want to have a cron job execute a python script using an already existing anaconda python environment called my_env.  The only thing I can think to do is have the cron job run a script called <code>my_script.bash</code> which in turn activates the env and then runs the python script.</p>
  
  <pre><code>#!/bin/bash
  source activate my_env
  python ~/my_project/main.py
  </code></pre>
  
  <p>Trying to execute this script from the command lines doesn't work:</p>
  
  <pre><code>$ sh scripts/my_script.bash
  scripts/my_script.bash: 9: scripts/my_script.bash: source: not found
  </code></pre>
  
  <p>What do I need to do to make sure the proper environment is activated. Its ok to explain it to me like I'm 5.</p>