So I'm trying to get my cron job running on DreamHost. I know I'm running run-periodic-tasks every ten minutes, but the cron job output looks like something from a horror movie:
---
Can't locate MT/Bootstrap.pm in @INC (@INC contains: lib ../lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/myusername/mydomain.com/myblogdirectory/tools/run-periodic-tasks line 44.
---
Can anybody help?
Thanks!
Reported on Movable Type 4.2
Assuming you've given the run-periodic tasks 755 permissions, here's what mine looks like.
There's a space between the semi-colon and the period.
I too use DreamHost, but had problems with the cron jobs in the web panel. I prefer to have a text file in the root folder and use the command line to set and reset the cron jobs.
There's a very good article on crontab in the DreamHost wiki.
http://wiki.dreamhost.com/Crontab
I had similar path errors, also on Dreamhost, but have it working now. According to my install notes, all I've done is run the cron job thus:
cd /home/[user]/[path-to-mt]; perl ./tools/run-periodic-tasks > /dev/null
I get occasional emails from cron when something messes up, but it's been surprisingly stable for a few weeks now, running Action Streams fetches and publish queue stuff (I don't fully understand the benefits and limitations of the publish queue, so I just set the 'high-priority background publishing' profile).
Now if only I could get FastCGI stable on Dreamhost... :-)
Oh joy. Not only did I post a dupe, but Markdown formatting isn't working either. Heck, not even line breaks are working.