ATutor

Learning Management Tools







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


Cron for a report


  • 2012-06-25 13:08:33

    Cron for a report

    I have had to create a custom report to query and send email to students who have not taken a test or who have failed the test. This needs to run everyday. There is no documentation on using cron except basics on getting it setup (it is setup). How do I have a .php page run everyday? I can't run this through the system crontab since the script requires authenticated access to ATutor. Do I have to create an entire custom module for this report? Please advise.

    Thanks,
    Betc

    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:
    Operating system ATutor is installed on - Red Hat Enterprise 5.6
    ATutor version - 1.5.5
    Patch #s applied -
    ATutor theme name -
    PHP version - 5.2
    MySQL version - 5.0.77
    Webserver & version - Apache 2.2.3
    Copies of error messages -
    Changes to default settings -
    Web browser being used -
    ...and anything else relevant -

  • 2012-06-25 16:42:09

    Re: Cron for a report?

    You would not be able to run a file with cron that requires authentication.

    You'd need to move your script into a module_cron.php file, then set the period to run it in a module.php file.

    Have a look at module developer documentation for details. You can take a copy of the Hello World module and start from there.

    http://help.atutor.ca/developer/modules.html#cron