Re: [web2py] Re: Cron doesn't work for me...

2011-03-15 Thread Tito Garrido
Hi VP!

How did you use the system cron? I'm wondering how can I specify the
function that I want to execute...

Regards,

Tito

On Tue, Mar 15, 2011 at 1:53 AM, VP vtp2...@gmail.com wrote:

 Cron didn't work for me either, so I used the system cron.

 One question I have though is why root when web2py is run as www-
 data?




-- 

Linux User #387870
.
 _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:___


[web2py] Re: Cron doesn't work for me...

2011-03-15 Thread VP
I answered your email.   Briefly (on Linux/Unix):

+ Use crontab -l to see your cron entries.

+ Use crontab -e to create/edit cron entries.

+ Google / wikipedia for cron syntax.  To execute a URL (e.g. web2py
controller, you can either use wget or curl).




On Mar 15, 8:05 am, Tito Garrido titogarr...@gmail.com wrote:
 Hi VP!

 How did you use the system cron? I'm wondering how can I specify the
 function that I want to execute...

 Regards,

 Tito

 On Tue, Mar 15, 2011 at 1:53 AM, VP vtp2...@gmail.com wrote:
  Cron didn't work for me either, so I used the system cron.

  One question I have though is why root when web2py is run as www-
  data?

 --

 Linux User #387870
 .
  _/_õ|__|
 ..º[ .-.___.-._| . . . .
 .__( o)__( o).:___


Re: [web2py] Re: Cron doesn't work for me...

2011-03-15 Thread Tito Garrido
Thanks!

On Tue, Mar 15, 2011 at 1:06 PM, VP vtp2...@gmail.com wrote:

 I answered your email.   Briefly (on Linux/Unix):

 + Use crontab -l to see your cron entries.

 + Use crontab -e to create/edit cron entries.

 + Google / wikipedia for cron syntax.  To execute a URL (e.g. web2py
 controller, you can either use wget or curl).




 On Mar 15, 8:05 am, Tito Garrido titogarr...@gmail.com wrote:
  Hi VP!
 
  How did you use the system cron? I'm wondering how can I specify the
  function that I want to execute...
 
  Regards,
 
  Tito
 
  On Tue, Mar 15, 2011 at 1:53 AM, VP vtp2...@gmail.com wrote:
   Cron didn't work for me either, so I used the system cron.
 
   One question I have though is why root when web2py is run as www-
   data?
 
  --
 
  Linux User #387870
  .
   _/_õ|__|
  ..º[ .-.___.-._| . . . .
  .__( o)__( o).:___




-- 

Linux User #387870
.
 _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:___


[web2py] Re: Cron doesn't work for me...

2011-03-14 Thread Tito Garrido
In fact, seems that it doesn't work on webfaction...

On Mon, Mar 14, 2011 at 9:15 PM, Tito Garrido titogarr...@gmail.com wrote:

 Not sure why but cron never worked for me...

 0-59/1 * * * * root *admin/test

 def test():
 mail.send('titogarr...@gmail.com','test','teste')
 return 'test'


 Nothing happens... I've tried locally and on webfaction...

 What I am doing wrong?

 Also how can I use external cron? I couln't figure out where I can specify
 the controler function on the book example:

 0-59/1 * * * * web2py cd /var/www/web2py/  python web2py.py -C -D 1  
 /tmp/cron.output 21



 Regards,

 Tito
 --

 Linux User #387870
 .
  _/_õ|__|
 ..º[ .-.___.-._| . . . .
 .__( o)__( o).:___




-- 

Linux User #387870
.
 _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:___


[web2py] Re: Cron doesn't work for me...

2011-03-14 Thread Massimo Di Pierro
I think

0-59/1 * * * * root *admin/test

should be

0-59/1 * * * * root *admin/default/test

there may be other problems.

On Mar 14, 7:15 pm, Tito Garrido titogarr...@gmail.com wrote:
 Not sure why but cron never worked for me...

 0-59/1 * * * * root *admin/test

 def test():
     mail.send('titogarr...@gmail.com','test','teste')
     return 'test'

 Nothing happens... I've tried locally and on webfaction...

 What I am doing wrong?

 Also how can I use external cron? I couln't figure out where I can specify
 the controler function on the book example:

 0-59/1 * * * * web2py cd /var/www/web2py/  python web2py.py -C -D 1

  /tmp/cron.output 21

 Regards,

 Tito
 --

 Linux User #387870
 .
  _/_õ|__|
 ..º[ .-.___.-._| . . . .
 .__( o)__( o).:___


[web2py] Re: Cron doesn't work for me...

2011-03-14 Thread VP
Cron didn't work for me either, so I used the system cron.

One question I have though is why root when web2py is run as www-
data?


[web2py] Re: Cron doesn't work for me...

2011-03-14 Thread Massimo Di Pierro
The user is irrelevant. The value is not used.

On Mar 14, 11:53 pm, VP vtp2...@gmail.com wrote:
 Cron didn't work for me either, so I used the system cron.

 One question I have though is why root when web2py is run as www-
 data?