I'd say you need to read the cron chapter of the book.
The syntax is

|cron_recurrence| |user| |**file_to_execute.py

so, in your case, 

@reboot root **applications/amlpoc/private/aml_service.py

On Wednesday, September 23, 2015 at 3:49:19 PM UTC+2, Blutoh wrote:
>
>
> I have created a task queue that handles a service request because the 
> operation takes about 4 to 6 minutes to complete, and returns messages and 
> a file.
> The task queue is working well when I start it manually.  I am now trying 
> to create a cron @reboot entry so that the task queue will start when 
> web2py starts, but I cannot get it to work.  The manual start for the queue 
> is this:
>
>          python web2py.py -S amlpoc -M -R 
> applications/amlpoc/private/aml_service.py
>
>
> For the cron entry I have tried:
>
>           @reboot  root   web2py.py -S amlpoc2 -M -R 
> applications/amlpoc/private/aml_service.py
>           @reboot  root   -S amlpoc2 -M -R 
> applications/amlpoc/private/aml_service.py
>           @reboot  root   amlpoc2 -M -R 
> applications/amlpoc/private/aml_service.py
>
> but none of these seem to work.  Can I call the task queue directly like 
> this, with parameters? If so, what am I missing?  If not, how should I make 
> the call?
>
> tnx,
> blutoh
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to