ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Is the cron page working


  • 2007-04-05 13:28:24

    Is the cron page working

    I'm trying to set up cron to run at regular intervals. I'm using the key and URL provided in my installation of ATutor. I've searched through the documentation, including the cron setup page and can't find anything to show me what I should expect to see if cron is running correctly, or how to tell if it is not. When I call up the URL with the key in my browser, all I see is a blank page.

    How can I tell if it is running correctly and is there some more extensive documentation on cron that I have overlooked? I saw a reference in one of the postings to a cron handbook.

    Thanks!

    operating system - Linux
    version of ATutor - 1.5.4 RC1
    versions of php - 4.4.4
    version of mysq l - 4.1.21-standard
    webserver & version - Apache 1.3.37 (Unix)
    copies of error messages - blank page
    changes to default settings -
    web browser being used - Firefox 1.5.0.11
    and anything else relevant -

  • 2007-04-05 14:55:53

    Re: Is the cron page working?

    Cron works fine, assuming it is available on the server hosting ATutor, which if you are using Linux, it is available. See the "cron" entry in the ATutor Administrator's handbook, not the cron handbook.

  • 2007-04-05 18:19:28

    Re: Is the cron page working?

    Thanks Greg,

    I have cron working for another LCMS, so cron works fine on my server. What is confusing me, is that when I launch the cron.php page from a URL in my browser for the OTHER non-ATutor LCMS, I get feedback on what has happened - backups for example. When I launch the cron.php page for ATutor (with the correct key), I only get a blank page and I can't tell if anything has happened. Unless I'm missing something, the documentation doesn't tell me what I should see after the cron.php page has been accessed.

  • 2007-04-06 12:25:25

    Re: Is the cron page working?

    The URL generated for cron is added to the host system's crontab, rather than pasted into a browser.

    I don't think notification would be a good idea, if for instance cron runs every 30 muinute (or less). Someone would get a notification each time cron runs. It would be easy enough to add by modifying the source code of the cron script, adding a reference to the mail function.

    There is nothing to see after cron runs.

  • 2007-04-06 18:13:56

    Re: Is the cron page working?

    I should add that module_cron.php is where this type of notification might be handled. You can program it to do just about anything.

    See the Module Development documentation for more about programming modules to run cron.

    http://www.atutor.ca/development/documentation/modules.html#cron

    or start with the module_cron.php file in the hello_world module

  • 2007-04-07 10:19:25

    Re: Is the cron page working?

    Sounds good. I'll play around with it.

    Thanks Greg!