can you print os.getcwd() to see in which folder it is being executed? On Feb 14, 9:04 pm, Thadeus Burgess <thade...@thadeusb.com> wrote: > Adding -N does not fix it. > > Only the following happens: > > =web2py Enterprise Web Framework > =Created by Massimo Di Pierro, Copyright 2007-2010 > =Version 1.74.11 (2010-02-03 10:53:34) > =Database drivers available: SQLite3, PostgreSQL > > Still works if executed from bash. It is the users crontab file > (crontab -e) so there should be no permission issues. > > -Thadeus > > On Sun, Feb 14, 2010 at 2:58 PM, mdipierro <mdipie...@cs.depaul.edu> wrote: > > I see. Thry this then: > > > */1 * * * * /usr/bin/python /web2py/web2py.py -S MYAPP -M -N -R > > /web2py/applications/MYAPP/cron/update_records.py >> > > /web2py/applications/MYAPP/cron/cron.log > > > notice -N > > > in 1.73.1 hardcorn was not working for you. Now that it is working > > unix cron calls you script wich calls hardcron again. This makes me > > think that -N should be default if -S. > > > Massimo > > > On Feb 14, 1:00 pm, Thadeus Burgess <thade...@thadeusb.com> wrote: > >> I can't stress this enough. > > >> This exact same line in the system crontab (I just copied and pasted > >> over to the new server and changed the paths) works perfectly on one > >> server running web2py 1.73.1. > > >> -Thadeus > > >> On Sun, Feb 14, 2010 at 12:54 PM, Thadeus Burgess <thade...@thadeusb.com> > >> wrote: > >> > You misunderstand. I am not using the web2py crontab file. I am using > >> > Linux (ubuntu) anacron, this is in the system crontab file. > > >> > thadeusb$ crontab -e > > >> > etc etc... > > >> > I run three web2py servers, this works on the other two that are > >> > running older web2py versions. The output redirect works perfectly > >> > since it is anacron executing the command. Works perfectly on my > >> > other two servers. The only difference is the web2py version, so > >> > something > >> > must have changed. > > >> > -Thadeus > > >> > On Sun, Feb 14, 2010 at 9:43 AM, mdipierro <mdipie...@cs.depaul.edu> > >> > wrote: > >> >> I think your crontab should just be > > >> >> */1 * * * * user * /web2py/applications/MYAPP/cron/ > >> >> update_records.py > > >> >> On Feb 14, 9:42 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > >> >>> I think your crontab should just be > > >> >>> */1 * * * * user *cron/update_records.py > > >> >>> On Feb 14, 2:13 am, Thadeus Burgess <thade...@thadeusb.com> wrote: > > >> >>> > When running the command below everything works fine, the python file > >> >>> > executes correctly. > > >> >>> > thadeus$ /usr/bin/python /web2py/web2py.py -S MYAPP -M -R > >> >>> > /web2py/applications/MYAPP/cron/update_records.py >> > >> >>> > /web2py/applications/MYAPP/cron/cron.log > > >> >>> > This works great when running from bash, however when I stick this > >> >>> > into cron, the only thing that appears in the log is the following. > > >> >>> > =web2py Enterprise Web Framework > >> >>> > =Created by Massimo Di Pierro, Copyright 2007-2010 > >> >>> > =Version 1.74.11 (2010-02-03 10:53:34) > >> >>> > =Database drivers available: SQLite3, PostgreSQL > >> >>> > =Starting cron... > > >> >>> > It seems as if web2py is just stopping there, and not executing the > >> >>> > update_records file. This is what I have in my linux crontab file. > > >> >>> > */1 * * * * /usr/bin/python /web2py/web2py.py -S MYAPP -M -R > >> >>> > /web2py/applications/MYAPP/cron/update_records.py >> > >> >>> > /web2py/applications/MYAPP/cron/cron.log > > >> >>> > Why does this work on the command line but not when put into external > >> >>> > cron ? On an older version of web2py (version 1.64.*) it works > >> >>> > perfectly, currently this is running on 1.74.11. > > >> >>> > -Thadeus > > >> >> -- > >> >> 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 > >> >> athttp://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 > > athttp://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.