WordPress.org

Ready to get started?Download WordPress

Forums

Using a Cron Job With a Plugin (1 post)

  1. Oizuled
    Member
    Posted 4 years ago #

    I am using the Sphider plugin to set up a search engine. The plugin is working fine, and is allowing me to manually enter websites to be crawled as it should.
    The regular installation of Sphider allows the use of the commandline to index the sites stored in your database.
    I want it to run one minute after midnight every Saturday, and I want it to re-index all sites in my database.
    I have the following set to run through my site's cPanel:
    1 0 * * 6 php /home/admin/public_html/wp-content/plugins/sphider/admin/spider.php -all

    I have it set to email me the status upon completion, and I received:
    Status: 302 Moved Temporarily
    X-Powered-By: PHP/5.2.9
    Set-Cookie: PHPSESSID=08e2bb35d24ef9694fd19dca729a5941; path=/
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Last-Modified: Sat, 19 Sep 2009 05:01:01 GMT
    Cache-Control: no-cache, must-revalidate, max-age=0
    Pragma: no-cache
    Location: http://mydomain.com/wp-login.php?redirect_to=http%3A%2F%2F
    Content-type: text/html

    Based on the second to last line (Location), it looks like it's attempting to log-in to the WordPress admin section prior to running the cron job.

    Anyone know how to allow it to log-in?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.