PhantomKID Posted April 20, 2011 Posted April 20, 2011 Hi, i'm newbe here. I wanna ask. I'm newbe on Cron Job. I make a new Cron Job in my CPanel account. But, when i log in to my CPanel account in the next time, i get my Cron Job disappear and there's no Cron Job in my Current Cron Job. Is Cron Job has lifetime or something? Should i make a new-same Cron Job again? Sorry, my english is poor. Thanks in advance.
PhantomKID Posted April 21, 2011 Author Posted April 21, 2011 Ah, i'm sorry, i forgot to tell those information. my username is phantkid, domain name is phantomkid.heliohost.org, and the server is Johnny. Thanks.
Guest Geoff Posted April 21, 2011 Posted April 21, 2011 Should i make a new-same Cron Job again? Try making the same cron job again. What command are you using? It seems to work fine on my account.
PhantomKID Posted April 23, 2011 Author Posted April 23, 2011 What command are you using? It seems to work fine on my account. i was using this command: /usr/bin/php /home/phantkid/plurk/plurkbot.php i have folder plurk in my home directory, and file plurkbot.php within it. I want to run this file automatically every hour, so i use 0 * * * * for time and using command /usr/bin/php /home/phantkid/plurk/plurkbot.php Is something wrong with my command?
Byron Posted April 23, 2011 Posted April 23, 2011 You can't have a cron job run every hour. Your only allowed 2 cron runs a day.
PhantomKID Posted April 23, 2011 Author Posted April 23, 2011 You can't have a cron job run every hour. Your only allowed 2 cron runs a day. ah, so that's the reason. thank you so much. btw, can i get special exception if the reason is, let say,just to make bot for my account in plurk.com so my acount can make new status automatically? and, it is said, to get some special exception for the rule about cron, i have to contact support. how can i contact support?
Guest Geoff Posted April 23, 2011 Posted April 23, 2011 btw, can i get special exception if the reason is, let say,just to make bot for my account in plurk.com so my acount can make new status automatically? Why don't you use http://www.setcronjob.com/ ? You can just make a PHP file with your cron, and then set it there. and, it is said, to get some special exception for the rule about cron, i have to contact support. how can i contact support? Well, this is support, and you are 'contacting support' right now. We usually only allow exceptions for a couple of days or so, like you can run a cron each hour for a day while you are beta-testing your site. I can escalate this and check with djbob, but he will probably deny your request, since it's not for a limited time.
Byron Posted April 23, 2011 Posted April 23, 2011 You could also use an include to include your cron file so each time a visitor visited your site it would run the cron script.
jje Posted April 23, 2011 Posted April 23, 2011 More cron runs == Higher server load == Slower server djbob rarely gives away free cron jobs, due to the reason above. Why not use Geoff/byron's methods? They basically replicate the setup you desired.
PhantomKID Posted April 28, 2011 Author Posted April 28, 2011 OK, thanks for all replies. It helps me very much. Why don't you use http://www.setcronjob.com/ ? You can just make a PHP file with your cron, and then set it there. thanks for this too.
jje Posted April 28, 2011 Posted April 28, 2011 Glad your problem got solved! Please spare 2 minutes to leave feedback at http://www.helionet.org/index/index.php?showtopic=8947
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now