cool. I did not know that. Achipa, would you be writing 3-4 pages
about cron for the book v2?

Massimo

On Jul 8, 1:45 pm, AchipA <attila.cs...@gmail.com> wrote:
> @reboot is a cron keyword, in unix context it means right after boot.
> Web2py cron *also* supports that keyword, and it means right after
> starting web2py.
>
> On Jul 8, 7:51 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > you talking about web2py cron or unix cron?
>
> > On Jul 8, 12:07 pm, AchipA <attila.cs...@gmail.com> wrote:
>
> > > Actually, cron has a keyword for that. Specify the time of the task as
> > > @reboot and itt will be run only once, right after booting.
>
> > > On Jul 8, 4:47 pm, Mr admin <mr.netad...@gmail.com> wrote:
>
> > > > You can use CRON entry like  this to try and run web2py every 15 minuses
>
> > > > # cron entry to run web2py every 15 minutes
> > > > 0,15,30,45 * * * * /root/runweb2py.sh
>
> > > > Here are the contents of the shell script.
>
> > > > #!/bin/bash
> > > > #
> > > > #   runweb2py.sh
> > > > #
> > > > cd /home/web2py
> > > > python web2py.py -i 192.168.0.200 -p 8000 -a MyPassWord
>
> > > > On Wed, Jul 8, 2009 at 9:15 AM, Jonathan Lundell <jlund...@pobox.com> 
> > > > wrote:
>
> > > > > On Jul 8, 2009, at 5:13 AM, Mr admin wrote:
>
> > > > > > One thing you can do is, login to the box using ssh, edit your
> > > > > > models, views and controllers without using the admin interface at
> > > > > > all.
>
> > > > > I'm not particularly concerned about the admin interface; I'm happy to
> > > > > develop locally (OS X in my case) and deploy updates via ssh.
>
> > > > > On Jul 8, 2009, at 5:21 AM, NetAdmin wrote:
>
> > > > > > As for running after a reboot, you could use cron to try and start
> > > > > > web2py hourly. If it's running, it should give an error message
> > > > > > that says "Address already in use"
>
> > > > > I don't like that this would put me off the air for an hour (or
> > > > > whatever interval). On the other hand, reboots are rare, so maybe it's
> > > > > not such a problem.
>
> > > > > I was vaguely thinking along the lines of having a cgi script that
> > > > > would be invoked by a request to web2py if web2py weren't running. But
> > > > > I haven't really thought out the implications of that.
>
> > > > > There's another problem, that Apache runs as a global user on the
> > > > > host. I use a PHP-only wrapper script for a couple of applications,
> > > > > such as WordPress <http://pragmatos.net>. So perhaps a wrapped PHP
> > > > > script to do the startup?
>
> > > > > Regardless, it'd be nice to have a recipe or three for running web2py
> > > > > via login account.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@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