Current time: 04-18-2014, 09:28 PM Hello There, Guest! (LoginRegister)

Post Reply 
Scheduling posts on MT
11-25-2006, 08:46 PM
Post: #11
Scheduling posts on MT
Quote:Anyway, how do I get into this cron thingy?
Try crontab -e , without the % Smile

Mark

--
Save $50 on DreamHost hosting using promo code SAVEMONEY ( Click for promo code details )
Visit this user's website Find all posts by this user
Quote this message in a reply
11-25-2006, 08:51 PM
Post: #12
Scheduling posts on MT
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?
Find all posts by this user
Quote this message in a reply
11-25-2006, 09:02 PM
Post: #13
Scheduling posts on MT
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?
Find all posts by this user
Quote this message in a reply
11-25-2006, 09:06 PM
Post: #14
Scheduling posts on MT
Quote: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/

Quote:how do I save Cron?
Save File = CTRL O (or press F3)
Exit Editor = CTRL X (or press F2)

Mark

--
Save $50 on DreamHost hosting using promo code SAVEMONEY ( Click for promo code details )
Visit this user's website Find all posts by this user
Quote this message in a reply
11-25-2006, 09:23 PM
Post: #15
Scheduling posts on MT
Ok, I'll try home/username/whatever...
Find all posts by this user
Quote this message in a reply
11-25-2006, 09:31 PM
Post: #16
Scheduling posts on MT
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
Find all posts by this user
Quote this message in a reply
11-25-2006, 09:36 PM
Post: #17
Scheduling posts on MT
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?
Visit this user's website Find all posts by this user
Quote this message in a reply
11-25-2006, 09:44 PM
Post: #18
Scheduling posts on MT
...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....
Find all posts by this user
Quote this message in a reply
11-25-2006, 09:47 PM
Post: #19
Scheduling posts on MT
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?
Visit this user's website Find all posts by this user
Quote this message in a reply
11-25-2006, 09:51 PM
Post: #20
Scheduling posts on MT
The root directory on the server. Is it where you can see your domain folders with .alias and .bash_profile?..
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: