Hello,

I have web2py running as a service on Windows Server 2003 from source
at version 1.93.2.
I'm trying to get cron to work but nothing seems to be happening. I
can't figure out if its running and failing, or not running at all, so
it would be really useful if someone could answer the following for
me:

a) Do I need to restart the service for changes to the cron file to
take effect?
b) Does the crontab file need to be in a specific encoding - could I
have screwed it up with Notepad?
c) Does the cron.master file in the admin application play a role?
d) Do I need to do anything in the options.py file (which I use as I
run web2py as a windows service)?
e) If one line in the crontab file fails, do the subsequent lines
still run?

I've been through all the documentation and searched this group but
can't figure it out. Assuming I'm doing nothing wrong with regards to
the above, if anyone can shed any light on the file contents below I
would be most grateful.

Thanks,

Andrew.

--------------------------------------------------------------------------
Here's the cron file:

#crontab
*/1     *       *       *       *       root 
**applications/HubFormsDev/cron/Script1.py

--------------------------------------------------------------------------
Here's Script1.py:

import datetime

TimeString = datetime.datetime.now().strftime('%d.%m -- %H.%M.%S')
f = open('C:\\Program Files\\Hub Pages\\web2py\\applications\
\HubFormsDev\\cron\\%s.txt' % TimeString, 'w')
f.close()

--------------------------------------------------------------------------
Here's options.py:

import socket
import os

ip = '0.0.0.0'
port = 80
password = 'abuchan'  # ## <recycle> means use the previous password
pid_filename = 'httpserver.pid'
log_filename = 'httpserver.log'
profiler_filename = None
ssl_certificate = ''  # ## path to certificate file
ssl_private_key = ''  # ## path to private key file
numthreads = 10
server_name = socket.gethostname()
request_queue_size = 5
timeout = 10
shutdown_timeout = 5
folder = os.getcwd()
extcron = None
nocron = None

--------------------------------------------------------------------------


Reply via email to