On Mar 27, 2010, at 9:15 PM, mdipierro wrote:

> If you install a new web2py app and, before you start web2py, you run
> your line below, then start web2py, welcome.w2p will package your cron
> task. All apps created after that will have it.

Though the way it's written, it depends on keeping applications/admin 
installed. It's not hard to edit for another app, but I wonder if the crontab 
line can be written in a non-appname-dependent way.

> 
> Massimo
> 
> On 27 Mar, 23:12, Iceberg <iceb...@21cn.com> wrote:
>> On Mar27, 5:27pm, annet <annet.verm...@gmail.com> wrote:
>> 
>>> I have just moved my application from the development environment to a
>>> production environment. I read the web2py manual and some posts in the
>>> group on the subject of cleaning up sessions, but I am not sure which
>>> is the best way to proceed. I am running version 1.76.5 of web2py.
>> 
>>> Kind regards,
>> 
>>> Annet
>> 
>> My approach is to use admin's expire_sessions.py feature, by this way:
>> 
>> $> cp web2py/applications/admin/cron/crontab web2py/applications/myapp/
>> cron
>> 
>> By the way, I feel boring that I have to do this every time I create a
>> new app, yet sometimes I forgot that. Don't know whether Massimo will
>> think about adding that line by default when creating every new app.
>> 
>> Sincerely,
>> Iceberg
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to 
> web2py+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/web2py?hl=en.
> 


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to