title: Flask-script with argument and cron jobs
body: <p>I have a flask application running with flask-script extension.
  A function (with 3 arguments) is placed in my cron and ended by: </p>
  
  <pre><code>if name == "main": 
      manager.run() 
  </code></pre>
  
  <p>Like mentioned in the flask-script doc - <a href="http://flask-script.readthedocs.org/en/latest" rel="nofollow">link</a></p>
  
  <p>This function works fine when I call it directly in the console (like mentioned in the flask-script doc)</p>
  
  <pre><code>python myfunction.py functionpython arg1 arg2 arg3
  </code></pre>
  
  <p>but not in my cron (a necessary comment "# arg2 comment" is added).</p>
  
  <pre><code>*/1 * * * * /var/www/TWEETPOKE/myfunction.py functionpython arg1 arg2 arg3 # arg2 comment
  </code></pre>
  
  <p>When I run this script on a raspberry pi, I get no error from either cron or python.
  Any clue?</p>