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.



Leave a comment