Cron Job

Discussion in 'Troubleshooting' started by Matthew, May 29, 2004.

  1. Matthew

    Matthew Guest

    Hi, I'm getting the following error on the admin screen:

    Cron job has been running last time at 05/27/2004 04:00:02, it is more than 24 hours before. Most possible external cron job has been set incorrectly. It may cause very serious problems with the script

    The Cron Job is set up as below:

    1 * * * * /usr/bin/lynx -source http://www.redmondexams.com/amember/cron.php?pass=XXX

    What is most likely to be the problem?

    Thanks.
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Most likely
    /usr/bin/lynx is not installed on your server. Try to use
    /usr/bin/curl
    instead of
    /usr/bin/lynx -source
  3. blimey

    blimey aMember Pro Customer

    Joined:
    Jan 6, 2007
    Messages:
    1
    What does cron.php do - as provided in the aMember package?
    What does check_cron (in cron.php) do? Does it fire off the cron-daemon?
    Regards
    Steve
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    cron.php and this function just trigger a built-in tasks for execution if it was not done before.
  5. dan_kelly

    dan_kelly New Member

    Joined:
    Aug 29, 2006
    Messages:
    91
    1. Do we need "?pass=XXX"??? If so, where do I find it for my install?

    It's not mentioned on http://manual.amember.com/Setup_a_Cron_Job

    2. Also, could we just use "0 * * * * http://yoursite.com/amember/cron.php"

    3. Is there any way to find out which one should work, or test an KNOW whether it will work or not. I'd rather know now, than go through an entire week of trying different command lines to see if it worked.

    Thanks,
    Dan

Share This Page