This isn't a big problem. I placed my script in cron folder (same as crontab) and added this line @reboot script.py It worked....
On Aug 12, 6:31 pm, Fran <francisb...@googlemail.com> wrote: > Should cron's @reboot be able to call a script or can it just call a > controller function? > > The docs just show a controller function for this > mode:http://www.web2py.com/examples/default/cron > > I'd like to be able to call an external script instead...this isn't > working even for very simple scripts though. > (The scripts run fine when called manually) > > I tried both syntaxes shown in the docs: > @reboot root *applications/sahana/cron/test.py > @reboot * * * * root *applications/sahana/cron/test.py > > Any ideas what could be wrong? > > I've tried on both XP (with Service & with Source) & Linux with Apache/ > WSGI > - how should @reboot work in the latter environment? > > XP with source, I just get this error: > WARNING:root:WEB2PY CRON Call returned code 1: > Which isn't erribly helpful... > > F --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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 -~----------~----~----~----~------~----~------~--~---