MadTechie Posted May 15, 2007 Share Posted May 15, 2007 OK i have tried this a few times and have seached google an nothing seams to work.. So.. i have a php script and it sends me a test email woohoo.. now i wanted the test email to be sent to me every hour (this was to test the cron).. so i loaded up cPanel did the following. (typed this as a step by step) 1. clicked Cron jobs (icon) Cron Jobs Please choose your experience level: Standard Advanced 2. click standard 3. i says Entry 1 and it asks for Minute(s): i set 15 Hour(s): i set Every Hour Day(s): i set every day Months(s): i set every month Weekday(s): i set every weekday 4. Command to run: i tried a few php /home/prefix/public_html/test.php php /home/prefix/public_html/test.php > /dev/null /bin/php /home/prefix/public_html/test.php 5. click save Cron Updated! 6. go back in and see Entry 1 wait hours even and nothing!! anyone know what i am doing wrong! Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/ Share on other sites More sharing options...
ober Posted May 15, 2007 Share Posted May 15, 2007 http://www.magical-marketing.biz/crontab_example.html Give this a shot. Also, depending on what mail service you use, it may take a few hours. Is there a log in cPanel that shows you that it ran? Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-253599 Share on other sites More sharing options...
steviewdr Posted May 15, 2007 Share Posted May 15, 2007 I had hassle previously with a third party webserver, and cron not sending emails. Cron or my user acc etc. couldnt send an email. In the end, I had to get cron to call the php script using wget Not ideal, but it worked. So the line in cron would be: wget http://www.website.com/~prefix/test.php You may/maynot have to specify the full path to wget. Rgds, Steve Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-253649 Share on other sites More sharing options...
MadTechie Posted May 15, 2007 Author Share Posted May 15, 2007 still no luck its not the mail feature is the fact it doesn't seam to add the croned job! their tech support is usless.. the logs doesn't show a thing! Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-253713 Share on other sites More sharing options...
MadTechie Posted May 15, 2007 Author Share Posted May 15, 2007 OMFG!!!! looking at the spec of the basic aka mini package.. Instant Account Activation! 24/7 Support & 24/7 Live Support! No Ads FTP, PHP, MySQL Unlimited MySQL Databases! Unlimited Parked Domains / Subdomains PHP with Safe-Mode Disabled [View phpinfo] Unlimited POP3, SMTP, IMAP, WebMail Powerful Spam Filtering Custom Error Documents Custom MX Records No File Size or Type Limits All Legal Content Allowed Priority Support! now look at the spec of the WHM (the one i have) Set your own space, bandwidth and resource limits Unlimited features (MySQL, FTP, Domains etc..) PHP, MySQL, CGI, PERL, SSI Unlimited MySQL Databases! Unlimited Domains / Subdomains Unlimited FTP Accounts Protected Directories (.htaccess) Fantastico Auto Installer PHP with Safe-Mode Disabled [View phpinfo] Frontpage Extensions Optional Hotlink Protection Unlimited POP3, SMTP, IMAP, WebMail Powerful Spam Filtering Website Statistics / Access Logs Custom Error Documents Custom MX Records Cron Jobs No File Size or Type Limits All Legal Content Allowed cPanel Control Panel Plus many other cPanel functions! NOW you see the Cron Jobs.. well i submitted a ticket see below.. my ticket ~Sighs~ i have been trying to add a crontab to my site, i have a php sctipt that emails me a report.. for whatever reason the job doesn't seam to be saving.. i have check the commands are valid but not sure if their valid on this server.. i have tryed wget http://#####/test.php curl http://#######/test.php php /home/####/public_html/test.php php -q /home/#####/public_html/test.php bin/php /home/#####/public_html/test.php each time i get Cron Updated! but nothing happens any suggestions reply Cron is not allowed unless you have a good reason for needing it. I am NOT HAPPY.. suggections... revenge one will be fine Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-253759 Share on other sites More sharing options...
cmgmyr Posted May 15, 2007 Share Posted May 15, 2007 wow...what company is this? Looks like you need to look for a new host Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-253763 Share on other sites More sharing options...
ober Posted May 15, 2007 Share Posted May 15, 2007 Yikes. echo cmgmyr. Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-253784 Share on other sites More sharing options...
MadTechie Posted May 15, 2007 Author Share Posted May 15, 2007 Yeah looking at 1and1 and ace-host.net shame my host won't transfer my domains OK i don't like to give bad report but while i'm still mad here the site www.hostultra.com Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-253795 Share on other sites More sharing options...
cmgmyr Posted May 15, 2007 Share Posted May 15, 2007 you should check out dreamhost and bluehost. If you like dreamhost let me know, I'll give you a discount coupon. PM me if you want it Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-253802 Share on other sites More sharing options...
MadTechie Posted May 15, 2007 Author Share Posted May 15, 2007 OK if your still reading this then thank you.. my next step is moving.. The Problem.. i have registered a few domains.. and when i registered i you get this message (see below) Domain Registration - Purchase Domain You are about to purchase the domain NotHappy.co.uk The cost of this domain is $8.65 per year. UK Domains have a minimum 2 year registration period. Important Information Please check carefully the above domain name is correct and that there is no spelling mistakes. All domain purchases are final. Domains cannot be refunded, cancelled, exchanged, renamed or transferred. By clicking the Purchase Domain button below the domain will be entered into our system for registration there is no going back after this point. so i have 2 years to wait on one.. and months of the others.. now should i push for getting them released (cancelled/exchanged) so i can uses them on another site ? as far as i am aware they have broken the law Trade Descriptions Act 1968 The Act also makes it a criminal offence: to make a statement which is known to be false or misleading recklessly to make a statement which is false or misleading as to any of the following matters: the provision of services accommodation or facilities the nature of any services, accommodation or facilities provided the time at which, manner in which or persons by whom any services, accommodation or facilities so provided the examination, approval or evaluation by any person of any services, accommodation or facilities so provided the location or amenities of any accommodation so provided Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-253822 Share on other sites More sharing options...
cmgmyr Posted May 15, 2007 Share Posted May 15, 2007 they might not have broken the law if you agreed to those terms Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-253825 Share on other sites More sharing options...
Daniel0 Posted May 15, 2007 Share Posted May 15, 2007 they might not have broken the law if you agreed to those terms I think he means that they broke the law by saying (writing on their page) he would have cron jobs, then when he tries to make a cron job they tell him that he needs some sort of special privileges in order to setup a cron job. I.e. "to make a statement which is known to be false or misleading". Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-253828 Share on other sites More sharing options...
cmgmyr Posted May 15, 2007 Share Posted May 15, 2007 o got ya Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-253831 Share on other sites More sharing options...
MadTechie Posted May 15, 2007 Author Share Posted May 15, 2007 OK well a little update while looking for another host i am try to see if i can use them for awhile longer my reply well I need it for part of the system i am writing.. it will for file/mysql cleanups email reporting and a queue for uploaded job's their responce Is there not any way else to do this, cron should be used as a last resort. Usually the way its done is to use a timestamp stored in the database and when a visitor goes to your site if more then X time has passed then you run your code and update the database. Either way, the minumum cron time will be 3 hours. OK this is c**p 3 hours is that to setup or intervals!! any suggections for a good responce.. i dont' want to play the false advertising card yet as a note my site is something that gets used weekly (rarely daily) but at the end of the month a lot of data is uploaded and it processes a lot of reports.. i wanted the cron to be every 15/30 minutes 97% of the time it will just check the database for the job list and do nothing! Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-253851 Share on other sites More sharing options...
cmgmyr Posted May 15, 2007 Share Posted May 15, 2007 Cron jobs should not be used as a last resort, but as a tool. When I signed up for your hosting services you had CronJobs listed as a feature. Since I am paying for this I would like to use it no matter if you think that it is a last resort or not. ...maybe? Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-253867 Share on other sites More sharing options...
MadTechie Posted May 15, 2007 Author Share Posted May 15, 2007 yeah true.. i may ask if i can just move the domain names, before thats.. i don't know.. humm Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-253884 Share on other sites More sharing options...
trq Posted May 16, 2007 Share Posted May 16, 2007 cmgmyr's reply sounds good to me. I don't see there problem. Cron itself uses little to no resources and your scripts would use no more resources then any http request. Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-254072 Share on other sites More sharing options...
MadTechie Posted May 16, 2007 Author Share Posted May 16, 2007 Well posted Cron jobs should not be used as a last resort, but as a tool. When I signed up for your hosting services you had CronJobs listed as a feature. Since I am paying for this I would like to use it no matter if you think that it is a last resort or not. We're see what happens thanks guys Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-254106 Share on other sites More sharing options...
448191 Posted May 16, 2007 Share Posted May 16, 2007 Am I the only one who doesn't really see this hosts problem with cron jobs? edit: Ha! there's a second page to this thread and thorpe already posted this. Pardon me Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-254218 Share on other sites More sharing options...
MadTechie Posted May 21, 2007 Author Share Posted May 21, 2007 Kinda hit solved to soon got another responce Cron Jobs are only available if you can prove that there is no other way for you to do what the cron is trying to do. Cron Jobs are a thing of the past. They cause a TON of server abuse and if it was a free for all then the server would not be stable. How are they "a thing of the past" ? anyone i understand the abuse part.. Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-258067 Share on other sites More sharing options...
ober Posted May 21, 2007 Share Posted May 21, 2007 Got me. They sound like a bunch of fools. Also, you can set your topic "unsolved" using the same button you set it "solved" with. I did it for you this time. Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-258237 Share on other sites More sharing options...
MadTechie Posted May 21, 2007 Author Share Posted May 21, 2007 Cool is that a new addition ? (unsolved that is) in anycase i am going to list my reasons. but also note i shouldn't have to justify them as its not in any agreement.. bunch of fools.. indeed anyone know how cron can be claessed as "a thing of the past" is their something new i have missed! Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-258260 Share on other sites More sharing options...
Daniel0 Posted May 21, 2007 Share Posted May 21, 2007 Bunch of crap. There is in no way it's a thing of the past. And how are you supposed to prove that there is no other option? Cron is designed specifically to run a job at a specific interval and is IMO the best way to do it in Unix/Linux. Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-258282 Share on other sites More sharing options...
MadTechie Posted May 21, 2007 Author Share Posted May 21, 2007 thanks Daniel that gave me a kick my replie How is cronjob a thing of the past. And how can i prove that there is no other option? Cron is designed specifically to run a job at a specific interval and is IMO the best way to do it in Unix/Linux. I have a mini account (without cronjobs) i paid for a WHM account mainly because i needed croning.. if you will not provide it them i request my domains be moved to another service provider of my choosing, because without them my site can not function the way i planned.. I registered the domains here because you fitted the requirements.. if your now saying you don't i wish to move.. Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-258292 Share on other sites More sharing options...
ober Posted May 21, 2007 Share Posted May 21, 2007 >>Cool is that a new addition ? (unsolved that is) umm... it's been there as long as the solved button has. Quote Link to comment https://forums.phpfreaks.com/topic/51485-crontab-cpanel/#findComment-258298 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.