The Movable Type Knowledge Base

Cron Job For Scheduled Posting Is Not Working

Question

I'm trying to set up a cron job for scheduled posting, but it's not working due to errors.

Answer

Error: Can't locate MT.pm

This means the cron job command is incorrect. It should be:

cd /full/path/to/your/mt/install/; ./tools/run-periodic-tasks

For Windows servers, the run command should be the path and filename of your Perl interpreter, followed by the path to the tool. For example:

C:\Perl\bin\perl.exe \tools\run-periodic-tasks

Be sure to set Start In to be the full path to your Movable Type directory. For example:

C:\Inetpub\wwwroot\mt

Error: Permission denied

Set the permissions on the run-periodic-tasks file to the equivalent of UNIX 755.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or questions. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Yahoo! Small Business web hosting services

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.