I want to run a script once a day. I need to execute models.

I tried with:

0 0 * * * python /path/to/web2py.py -S app -M -N -R applications/app/private
/cron_test.py >> cron.txt 2>&1


And this *works*.

But I see web2py has some flags and I am not sure should I use them or not. 
Does it matter?

  -J, --cronjob         identify cron-initiated command
  -C, --cron            trigger a cron run manually; usually invoked from a
                        system crontab

Do they change anything?


Another question... My cron.txt is full of:
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2012
Version 2.0.7 (2012-09-04 17:58:46) stable
Database drivers available: SQLite(sqlite3), MySQL(pymysql), MySQL(MySQLdb), 
PostgreSQL(pg8000), CouchDB(couchdb), IMAP(imaplib)

I would like to remove this but if I run with -Q flag, then I can't see 
script output and I cannot see the traceback if there is an exception.

Any suggestions?

-- 



Reply via email to