« Fighting Spam | Main | Using A Comment Challenge to Combat Spam »

Create Scheduled Posts Using Shell Access

I've used cPanel without problems to set up scheduled posts and recently moved my hosting to Dreamhost. Once my Movable Type installation was set up, I had to do a quick course on using the shell access to enable crontab jobs.

Sixaparts instructions have an error that has frustrated me for days, and I've searched the internet for a solution to solve this problem.

Instead of this:

0,15,30,45 * * * * cd /path/to/mt/; ./tools/run-periodic-tasks

Which will produce the following error:

/bin/sh: line 1: /home/username/path/to/mt/: is a directory

You need to type this, without the trailing slash after mt:

0,15,30,45 * * * * cd /path/to/mt; ./tools/run-periodic-tasks

This is the same command as previous, only shorthand:

*/15 * * * * cd /path/to/mt; ./tools/run-periodic-tasks

Be sure to set the permissions for run-periodic-tasks to 755.

My thanks to the Dreamhosters Forum for help with this problem.

Other useful links include Crontab on Dreamhost, and Installing Movable Type on Dreamhost.


TrackBack

TrackBack URL for this entry:
http://www.bestoday.com.au/cgi-bin/mt/mt-tb.cgi/731

Leave a comment

Verification (needed to reduce spam):

September 2008

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

Subscribe

Enter your Email


Preview | Powered by FeedBlitz

Google AdSense

The Playground

DreamHost

GeoURL


Creative Commons License
This weblog is licensed under a Creative Commons License.