Scheduling posts on MT

Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 18:42:00

MT=Movable type.
Scheduling posts=future posts feature.
I know that I have to go to MT's installation/manual support for that. I did. Here's what they say:

cron

If you have shell access to a Unix server you can set up scheduled posting by editing your crontab, the table the cron utility uses to store its assignments:

% crontab -e

Then add the following line:

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

This instructs cron to run the script at zero, fifteen, thirty, and forty-five minutes after the hour, every hour. The asterisks are a way of telling cron to do this every hour, every day, every day of the week and month. Make sure you have exactly four asterisks separated by spaces.
/path/to/mt/ should be the path to your Movable Type application directory.

After that, just save the file, exiting your editor, and cron will report that it installed a new crontab.

Excellent...I don't have the shell access. I've downloaded PuTTY, logged in, and it gave me a message that "this account only has FTP access." So, that's that. Next:

cPanel

To set up scheduled posting through cPanel, follow these directions:

How do I get to this in cPanel?

In the box labeled "Command to run," enter the path to your Movable Type installation, followed by /tools/run-periodic-tasks:

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

The timing options can be set to a schedule that suits you; however, it is not wise to run the script more often than about once every fifteen minutes, since it could bog down your server. We recommend the settings "Every fifteen minutes," "Every Hour," "Every Day," "Every Month," and "Every Weekday."

I'm sorry, but where's that "Command to run" box? And DH's panel doesn't look like an ordinary cPanel

Windows

If Movable Type is running on a Windows server, you can create a scheduled task to achieve the same result. Use the following parameters for your task:

How do I get to this in Windows?

* Name

"Movable Type Tasks".
* Run

The run command should be the path and filename of your Perl interpreter (i.e., C:Perlbinperl.exe), followed by toolsrun-periodic-tasks.
* Start In

Should be the full path to your Movable Type directory. Example: C:Inetpubwwwrootmt.
* Schedule

The timing options can be set to a schedule that suits you, however, it is not wise to run the script more often than about once every fifteen minutes, since it could bog down your server. We recommend a frequency between every fifteen minutes to once a day.

Ok, but I believe this only pertains to your home/no hosting Windows server.

So, the question is how would I go about making the future posts in this case?

Re: Scheduling posts on MT

Posted by: seiler
Posted on: 2006-11-25 18:51:00

I have no experience with MT, but two quick things:

1. Just edit your user in the control panel and allow shell access. CPanel is very different than DH's panel, so I'd stick with the shell directions.

2. If you copy/paste the line into the shell, be sure it doesn't wrap, or it will probably be a problem.

And Dreamhost uses Linux, so you can skip the Windows section.

It can take a little while for the shell access to be enabled, so you might not be able to log in right away.

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 18:55:00

In reply to:

Just edit your user in the control panel and allow shell access.


And how do I do that? You mean from the Web ID Central? I didn't see anything that said allow shell access, or anything like that.

Re: Scheduling posts on MT

Posted by: rlparker
Posted on: 2006-11-25 18:58:00

In reply to:

Excellent...I don't have the shell access. I've downloaded PuTTY, logged in, and it gave me a message that "this account only has FTP access." So, that's that.


It doesn't have to be a "that's that" situation. All DH accounts come with shell access available, though shell access must be enabled in the Control Panel(not cPanel, which DH does not use) for your user in order for you to able to use ssh to login to the shell.

Once you have done that, the first set of instructions ("If you have shell access to a Unix server") in your post will work just fine. If you are not the "master" account holder for the Dreamhost account in question, you may need that master account holder to authorize/set-up your user have shell access enabled, but if you are the account holder, you can do it yourself as described in the wiki link provided above.

You will also find additional information on using the shell and cron in the wiki. Good Luck!

--rlparker



Re: Scheduling posts on MT

Posted by: rlparker
Posted on: 2006-11-25 19:00:00

Check my other post in this thread - there is a link to a wiki article on how to do that. The short version is to go to the control panel--=>Manage Users--> and click the "edit" link next to your user..there is a checkbox to enable the shell there.

--rlparker

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 19:08:00

Ok, reading http://wiki.dreamhost.com/index.php/Enabling_Shell_Access...blah here....blah there.....ok, manage users....edit - screw creating the new one [enough as it is]...Enable ssh/telnet? Yes.../bin/bash..wtf is this...ah, let's stick with the bashing...Ok, Save changes...yes...aha - Successfully edited user! The changes will take a few minutes to take effect....a few?..it said about 20 minutes in the wiki...ah, whatever makes it work...I'll wait...

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 19:25:00

Ok, I got the access...new problem. I'm trying to type this % crontab -e stuff and get nothing since it gives me this:
[tab]$ % crontab
-bash: fg: %: no such job

Great, now since I'm a newbie to all this coding this, is anyone familiar with this / HELP ME PLZ?

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 19:33:00

oops... I accidentally typed cd .. in the PuTTy under my user name and saw all the users in DH system...yikes...is that a bad thing?..

Re: Scheduling posts on MT

Posted by: Raz2133
Posted on: 2006-11-25 19:39:00

In reply to:

I accidentally typed cd .. in the PuTTy under my user name and saw all the users in DH system...yikes...is that a bad thing?..


Not really, you will not have any valid permissions for those other user home directories (not even READ).

Mark

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 19:41:00

Oh, good. The last thing I need is to get into trouble due to my own computer illiteracy. Anyway, how do I get into this cron thingy?

Re: Scheduling posts on MT

Posted by: Raz2133
Posted on: 2006-11-25 19:46:00

In reply to:

Anyway, how do I get into this cron thingy?


Try crontab -e , without the % smile

Mark

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 19:51:00

Right, yes.
I got into the Cron. I typed crontab -e, not % crontab -e! Wtf is the difference anyway? Well, obviously, there is. Next, I opened the file and what I saw was blank space.
O..k..now I should type 0,15,30,45 * * * * cd /path/to/mt/; ./tools/run-periodic-tasks, just like it said in the MT tutorial.
Great, but what would be the path? Is it just mydomain.com/mt, or is it something else? Also, how do I save Cron?

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 20:02:00

Ok, I think I've just saved the cron file by hitting F2 for Exit and then Y for Yes. Ok, what about the directory/path?

Re: Scheduling posts on MT

Posted by: Raz2133
Posted on: 2006-11-25 20:06:00

In reply to:

Great, but what would be the path? Is it just mydomain.com/mt, or is it something else?


I am not that familiar with MT, but I think the path should be something like the following;

/home/dreamhostusername/domainname.com/mt/

In reply to:

how do I save Cron?


Save File = CTRL O (or press F3)
Exit Editor = CTRL X (or press F2)

Mark

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 20:23:00

Ok, I'll try home/username/whatever...

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 20:31:00

Ok, this is what happened:
[tab]$ crontab -e
no crontab for willdex - using an empty one
crontab: installing new crontab
[tab]$ crontab -e
crontab: installing new crontab


I had to re-open the file to add home/willdex/, that's why you see installing new crontab twice...

So, now I got an email from DH [actually I found out about this email because I saw You have new mail in /home/willdex/Maildir/ right under installing new crontab. Here's what it says:
/bin/sh: line 1: cd: /mydomainname/: No such file or directory
/bin/sh: line 1: ./tools/run-periodic-tasks: No such file or directory


Re: Scheduling posts on MT

Posted by: quanin
Posted on: 2006-11-25 20:36:00

Being a MT user myself, I can probably be of help here. The easiest thing to do so far as setting up a crontab is this.

1: On your own machine, fire up notepad or an equivalent program. Then, copy and paste the cron line from the MT user manual, changing /path/to/mt to your appropriate directory, in this case /home/username/domain/mt. Remember to make sure the line doesn't wrap or you'll have issues.
2: Save the file as crontab.txt. Save it somewhere you'll remember where it is, because you're gonna need it in about 30 seconds.
3: Fire up your FTP program, and make sure the transfer type is set to ascii. Connect to your FTP server.
4: Locate and upload crontab.txt, then close your FTP program.
5: Run PuTTY, and log in.
6: At the command prompt, type the following:
crontab crontab.txt

You've just set up a crontab the easy way. Anything else you need a hand with, let me know.

Yes, I have an opinion.

Get a minimum 50% off with the "haveadreamyday" promo code, and... have a dreamy day. Original, no?

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 20:44:00

...Locate and upload crontab.txt to where?..
Here's what I wrote just now in Notepad:
0,15,30,45 * * * * cd /home/willdex/www.mydomain.com/; ./tools/run-periodic-tasks
The reason I put the forward slash at the end is because that's how it is in the tutorial:
...Then add the following line:
0,15,30,45 * * * * cd /path/to/mt/; ./tools/run-periodic-tasks
This instructs cron to run....


Re: Scheduling posts on MT

Posted by: quanin
Posted on: 2006-11-25 20:47:00

Upload it to the root directory on the server; meaning, where you are immediately after you log in via FTP. Also, I hope you 1: replaced mydomain.com with your actual domain name, and 2: didn't include the www. You'll end up having issues if you didn't do either.

Yes, I have an opinion.

Get a minimum 50% off with the "haveadreamyday" promo code, and... have a dreamy day. Original, no?

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 20:51:00

The root directory on the server. Is it where you can see your domain folders with .alias and .bash_profile?..

Re: Scheduling posts on MT

Posted by: quanin
Posted on: 2006-11-25 20:53:00

That's the one, yessir.

Yes, I have an opinion.

Get a minimum 50% off with the "haveadreamyday" promo code, and... have a dreamy day. Original, no?

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 20:58:00

Ok, so I've created and uploaded the file, then ran PuTTY [it was open :)] and:
[tab]$ crontab crontab.txt
[tab]$
Is it setup now?

Re: Scheduling posts on MT

Posted by: quanin
Posted on: 2006-11-25 21:01:00

Yep. Now, because of the nature of the script, you'll probably get an email every time it posts an entry for you that you've scheduled for future. If that happens and you don't want it to, it's an easy fix; just add >> /dev/null to the end of the line in crontab.txt and repeat the steps.

Yes, I have an opinion.

Get a minimum 50% off with the "haveadreamyday" promo code, and... have a dreamy day. Original, no?

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 21:03:00

In reply to:

Yep.


Ok, now if something comes up I know where to find you...:)

Re: Scheduling posts on MT

Posted by: quanin
Posted on: 2006-11-25 21:05:00

That's why I'm here, after all.

Yes, I have an opinion.

Get a minimum 50% off with the "haveadreamyday" promo code, and... have a dreamy day. Original, no?

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 21:10:00

It's still not working, I've scheduled my post to appear at 2006-11-26 00:08:15, and it still isn't there...
Status: Scheduled
Entry Date: 2006-11-26 00:08:15

Re: Scheduling posts on MT

Posted by: quanin
Posted on: 2006-11-25 21:13:00

It won't be there until 15 after the hour server time, as the script will run every 15 minutes. It's not adviseable to run the script more often than that. From within the shell, type 'date' minus quotes to see what the current server time is.

Yes, I have an opinion.

Get a minimum 50% off with the "haveadreamyday" promo code, and... have a dreamy day. Original, no?

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 21:16:00

Sat Nov 25 21:14:55 PST 2006
Uhhh...okay, now what?..Oh, !@#$, I should've changed the Publish on date, right!

Re: Scheduling posts on MT

Posted by: quanin
Posted on: 2006-11-25 21:18:00

There is no publish on date. Assuming your blog is set for EST, if you go to your website right now, your post should be there.

Yes, I have an opinion.

Get a minimum 50% off with the "haveadreamyday" promo code, and... have a dreamy day. Original, no?

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 21:22:00

In reply to:

Assuming your blog is set for EST, if you go to your website right now, your post should be there.


My blog is setup for EST [UTC -5], but the post still isn't there...And by Publish on date I meant Entry Date.

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 21:32:00

Still not there...damn. Should I do anything?

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 21:45:00

I've changed the schedule time back to 2006-11-26 00:43:00 and still nothing.

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 21:52:00

Ok, I've removed that forward slash and re-uploaded the file.

Re: Scheduling posts on MT

Posted by: quanin
Posted on: 2006-11-25 21:54:00

Hang on a sec... really basic thing just popped into my head. Okay, from within your shell account, type the following commands:
cd /home/username/domain/mt/tools
./run-periodic-tasks

Tell me what it says. I think I may know why it won't play nice.

Yes, I have an opinion.

Get a minimum 50% off with the "haveadreamyday" promo code, and... have a dreamy day. Original, no?Edited by quanin on 11/25/06 09:55 PM (server time).

Re: Scheduling posts on MT

Posted by: rlparker
Posted on: 2006-11-25 21:55:00

then it should have run at 0030 EST, should not have done anything since the post was set for 0043, it should have run again at 0045, found your post, and posted it. edited: Never mind me, stick with quanin - he's got you well handled wink

--rlparker

Edited by rlparker on 11/25/06 09:57 PM (server time).

Re: Scheduling posts on MT

Posted by: quanin
Posted on: 2006-11-25 21:57:00

I think I know why it's not liking him, and it's something I probably should have had him check before. It would have shown up in the emails but my guess is if he's getting them, he's just deleting them. So my last post here will clarify for sure.

Yes, I have an opinion.

Get a minimum 50% off with the "haveadreamyday" promo code, and... have a dreamy day. Original, no?

Re: Scheduling posts on MT

Posted by: rlparker
Posted on: 2006-11-25 21:59:00

Got it! I edited my post to tell him to stick with you on this one wink. Sorry for jumping in (I didn't know if you were still up)

--rlparker

Re: Scheduling posts on MT

Posted by: quanin
Posted on: 2006-11-25 22:04:00

Appologies neither required nor accepted. Any help is appreciated... I just don't want him getting any more confused than MT already has a tendancy of making people. ;)

Yes, I have an opinion.

Get a minimum 50% off with the "haveadreamyday" promo code, and... have a dreamy day. Original, no?

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 22:05:00

I don't have a separate mt folder, so I typed

cd /home/willdex/mysite/tools and here's what came up:

[tab]$ cd /home/willdex/mysite/tools
[tab]$


Then I did this:

[tab]$ ./run-periodic-tasks

And here's what came up:

-bash: ./run-periodic-tasks: Permission denied
[tab]$


Re: Scheduling posts on MT

Posted by: rlparker
Posted on: 2006-11-25 22:05:00

In reply to:

I just don't want him getting any more confused than MT already has a tendancy of making people. ;)


Never a truer phrase was written smile

--rlparker

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 22:28:00

Still nothing yet...
What does the dot do in ./tools/run-periodic-tasks?

Re: Scheduling posts on MT

Posted by: rlparker
Posted on: 2006-11-25 22:40:00

using your ftp client, or the shell, set the *nix permission on the file run-periodic-tasks to 755.

Ref links:
http://www.murdoconline.net/archives/002081.html
http://www.movalog.com/archives/general/scheduled-postings-and-cron-jobs

--rlparker

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 22:48:00

So, I should chmod 755 run-periodic-tasks:

[tab]$ chmod 755 run-periodic-tasks
[tab]$

Then I put:
[tab]$ ./run-periodic-tasks just to check. Gives me nothing, blank space.

Re: Scheduling posts on MT

Posted by: rlparker
Posted on: 2006-11-25 22:50:00

actually, it should have given you back your prompt...are you saying that the program "hung"?

--rlparker


Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 22:51:00

HAHAHAHAH!!!!! YEAH! I GOT IT!!!! IT'S WORKING!! !@#$%^&*()! WEEEEEEEEEEEEEE...:))))))

Re: Scheduling posts on MT

Posted by: rlparker
Posted on: 2006-11-25 22:56:00

Very cool! I'm glad you got it to work - props to quanin for the "step by step" wink

--rlparker

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 22:57:00

Yeah, I've sent you both a very private message :)

Re: Scheduling posts on MT

Posted by: rlparker
Posted on: 2006-11-25 23:48:00

Note: This is just a follow-up post to a resolved issue, entered to clarify an item not addressed in the original thread (the original poster added a question via an edit after his post was replied to - so his question was never answered - it's answered here in the event it is of interest to future readers.)

In reply to:

"What does the dot do in ./tools/run-periodic-tasks?"


The "./" is used a prefix to the name of the executable script/program in the bash shell to ensure that the program/script is run even if the current directory is not in the PATH environment variable. If the current directory *is* in the PATH environment variable, you can omit the ./ before the name of the executable script/program.

ref:
http://www.lowfatlinux.com/linux-execute-script.html
This site has a very good introduction/tutorial on the use of Linux, and is guranteed to be useful for those learning how to use the shell.

--rlparker

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-25 23:59:00

Cool. And, just to clarify, what if I change 0,15,30,45 * * * * cd to, say, 0,5,10,15,20,25,30,35,40,45,50,55 * * * * cd?

Re: Scheduling posts on MT

Posted by: rlparker
Posted on: 2006-11-26 00:14:00

In reply to:

just to clarify, what if I change 0,15,30,45 * * * * cd to, say, 0,5,10,15,20,25,30,35,40,45,50,55 * * * * cd?


If you did that, you would be creating a cron job that ran every 5 minutes - which is:

1) Unnecessary

2) An irresponsible use of shared/limited resources (CPU time), which is not at all considerate of other users on your server.

People doing this kind of stuff is why many hosts won't let shared hosting users have access to cron (or severely limit its use). If everybody on your server did that, your server performance could easily begin to "seriously suck", which would affect all the users on your server (including you!), and DH would properly need to re-evaluate the wisdom of letting us have access to run cron jobs.

As was mentioned earlier in the thread, every 15 minutes is *probably* acceptable; DH will let you know if it is not (if it uses to much cpu or impacts the performance of the server), and should be more than adequate for the purpose of this script. wink

--rlparker

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-26 00:20:00

Alright, got it. As a matter of fact, I think I'm having that problem again [with the posting]. I've created a new post and set the future time to 2006-11-26 00:05:15, but it for some reason doesn't work anymore :( Should the date be rolled over to PST, or stay with EST since that's the way it is in my blog settings.

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-26 00:37:00

Ok, when I went to putty and manually typed ./tools/run-periodic-tasks, it worked. I think there's still some problem with the automation of this process.

Re: Scheduling posts on MT

Posted by: rlparker
Posted on: 2006-11-26 00:39:00

Unless quanin, or another user more familiar with MT, can give you better input (I don't use MT), you will probably have to research via MT support or experiment to determine the interaction between the MT tools, your local time, and the server time.

Remember, the cron job runs every 15 minutes, and (if MT runs this stuff the way other tools I've used run stuff) your posts will not be updated at the time you set - it will be updated by the next cron job running *after* the set time.

--rlparker

Re: Scheduling posts on MT

Posted by: quanin
Posted on: 2006-11-26 02:55:00

I believe you can leave your timezone settings as is. Your post won't appear *exactly* when you specify, but that's the nature of cron jobs. It will still show as being written on that date, and at that time. All the cron job will do is change the status of your posts when it runs. It doesn't touch anything else.

Yes, I have an opinion.

Get a minimum 50% off with the "haveadreamyday" promo code, and... have a dreamy day. Original, no?

Re: Scheduling posts on MT

Posted by: anonymous2
Posted on: 2006-11-26 07:45:00

In reply to:

Cool. And, just to clarify, what if I change 0,15,30,45 * * * * cd to, say, 0,5,10,15,20,25,30,35,40,45,50,55 * * * * cd?


3) A lot more typing than */5 * * * * or */15 * * * * ;-)

http://wiki.dreamhost.com/index.php/Cron#Operators




You are welcome to a refund.-Michael;Comparing 'DH of today' with 'DH of old' does not serve much purpose.-Dallas

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-26 08:15:00

Ok, I'll leave the time as it is and won't change the crontab's variables. Off the topic: fyi, this thread/problem has more replies than any other in the discussion forum's history. Tells you something, doesn't it? I hope it's going to end here.

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-26 12:47:00

Ok, guys, I'm back. Now I'm a bit experienced in this issue, since I now figured out how to check my shell email. The last massage I got was:
Date: Sun, 26 Nov 2006 12:30:01 -0800 (PST)

/bin/sh: line 1: .tools/run-periodic-tasks: No such file or directory
which makes it exactly 0,15,30,45... of the automation process.
The scheduled time was 2006-11-26 12:20:10, but, since it's every 15 minutes, the lat one was done a 12:30.

I looked into the Movalog's website and found this:

...Hey all, I've taken a few cracks at this but can't seem to get it working. I've set it up exactly as stated in the entry using cPanel Standard... as such:

cd /home/MYUSERNAME/public_html/mt/; ./tools/run-periodic-tasks

I receive an email stating the following:

/bin/sh: line 1: ./tools/run-periodic-tasks: No such file or directory

I've checked, and the file exists as it should. I'm stumped! Help, please!

Posted by: Stephen Glauser at September 17, 2006 3:52 PM | #

Figured it out! The one that worked for me:

cd /home/trm-gla/public_html/mt; ./tools/run-periodic-tasks

Posted by: Stephen Glauser at September 17, 2006 6:39 PM | #...


Ok, so far I'm stumped too. Note that there's no / in the second attempt after /mt. So, what I'll do now is remove that freaking forward slash after www.domain.com. We'll see what happens...It really becomes annoying by the way...Maybe I'll create a blog just for this purpose after all...

Garbage on streets? Mail out in the open? Check out www.ave-u.com for more goodies living in a city has to offer.

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-26 13:04:00

Still, same message:
Subject: Cron <willdex@tab> cd /home/willdex/www.ave-u.com; .tools/run-periodic-tasks

Date: Sun, 26 Nov 2006 13:00:01 -0800 (PST)

/bin/sh: line 1: .tools/run-periodic-tasks: No such file or directory

I don't care about the mydomain crap, I just want it to work...How the hell can't it exist when it's right there?!!

Garbage on streets? Mail out in the open? Check out www.ave-u.com for more goodies living in a city has to offer.

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-26 13:11:00

Ok, sorry for the profanity, but I believe I've fucked this one up myself: I've written
cd /home/willdex/www.ave-u.com; .tools/run-periodic-tasks instead of cd /home/willdex/www.ave-u.com; ./tools/run-periodic-tasks. Just foo. I apologize for that.

Garbage on streets? Mail out in the open? Check out www.ave-u.com for more goodies living in a city has to offer.

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-26 13:16:00

That's it. It's working. Just one !@#$%^& slash, people. Just one. We all learn as we go.

Garbage on streets? Mail out in the open? Check out www.ave-u.com for more goodies living in a city has to offer.

Re: Scheduling posts on MT

Posted by: willdex
Posted on: 2006-11-26 13:42:00

The last and final entry on this issue. If you don't know/have no !@#$%^& clue on how to install Movable Type on Dreamhost, refer to http://www.wombatnation.com/misc/installMTDreamHost.html

I used shell access because didn't have ability to use cPanel [I'm glad I did for now I've learned something new].

Think you have no shell access? Think again: http://wiki.dreamhost.com/index.php/Enabling_Shell_Access tells you all about it. Use PuTTy [open-source] to get the shell access.

After you're logged in, type

crontab –e - then you're given an empty file to work with.

Type 0,15,30,45 * * * * cd <path to mt>; ./tools/run-periodic-tasks in one line. It has to be one line. <path to mt> is your Movable Type path, it might be home/yourusername/yourdomain.com/mt or it might be home/yourusername/yourdomain.com. Why the 15 difference? It's minutes. This command instructs cron to run the script every 15 minutes of every hour (1st *), every day (2nd *), every weekday (3rd *) and every month (4th *). Make sure this command is exactly as written. Also, yes, there is a space in ...mt>; ./tools....

Note that there's no ending / in the URL! Note that again and again until you get it right! Don't be me, do not make the very same mistake. It will become annoying afterwards. Do include the / in ./tools. Got it? Good.

That's about it. I've spent nearly 8 hours doing this asdfghjkl. Again: we all make mistakes, we all learn as we go. Peace.

Garbage on streets? Mail out in the open? Check out www.ave-u.com for more goodies living in a city has to offer.

Tags: cronmovable typecpanelcrontabputtyshellwindows serverftp accessexitingbogdhfive minutes