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