thanks bruno,
i read your link but i don't understand very well...
first question:
what is this?? */30* * * *
if i wanna execute every day the function daytask in my controller
automatictask i neet to do:
1) edit web2py 1.84.4\applications\xxx\cron\crontab
2) add a row (my crontab is
first question:
what is this?? */30 * * * *
That */30 * * * * is ordinary linux crontab syntax, look at
http://adminschoice.com/crontab-quick-reference and the fist picture
when you scroll down. It should tell you what those * are.
Basically you define when the cron is runned,
first *
# Add a datetime field to your model that saves current datetime
db.define_table('mytable',
Field('firstn', 'string', length=15),
Field('fdate', 'datetime', default=request.now, requires=
IS_NOT_EMPTY() )
)
db.tbtime5.firstn.requires=IS_NOT_EMPTY()
db.tbtime5.fdate.requires=IS_NOT_EMPTY()
#
3 matches
Mail list logo