Go Back   Video Web Hosting Forums - CirtexHosting Community > CirtexHosting Community > Website Development & Scripting

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-16-2007, 09:15 PM
Registered User
 
Join Date: Mar 2007
Posts: 1
Smile Cron job

Hello,

This is my 1st here

Any good link where to start to learn cron job?

I'm thinking to write/use a simple php script which is integrated with cron job to make an automated blog.

Any suggestion?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-17-2007, 01:11 AM
Cirtex Admin's Avatar
Administrator
 
Join Date: Apr 2003
Location: New York City, NY, USA
Posts: 4,320
Hi Rontol

This might be helpful:
http://www.unixgeeks.org/security/ne...ix/cron-1.html

And theres tutorial on setting up Cronjob for cPanel at www.cirtexhosting.com/tutorials.shtml

Cheers
__________________
CirtexHosting Providing Affordable and Quality Web Hosting & Reseller Hosting since 2003
LINUX based CPANEL/WHM Shared and Reseller Web Hosting with Fantastico
Visit us at: http://www.cirtexhosting.com & http://www.hostv.com
I eat penguins for breakfast... ~ Servers Located in NJ & IL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-16-2007, 08:23 PM
Registered User
 
Join Date: Mar 2007
Posts: 4
I try a lot of way to use cronjob. Most of way not worked at baby server... But I find a simple solution:

GET http://domain.com/cronjobs.php

It is working success
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-17-2007, 03:23 AM
Cirtex Admin's Avatar
Administrator
 
Join Date: Apr 2003
Location: New York City, NY, USA
Posts: 4,320
Yep that would work but probably not the best way to do it.

Cheers
__________________
CirtexHosting Providing Affordable and Quality Web Hosting & Reseller Hosting since 2003
LINUX based CPANEL/WHM Shared and Reseller Web Hosting with Fantastico
Visit us at: http://www.cirtexhosting.com & http://www.hostv.com
I eat penguins for breakfast... ~ Servers Located in NJ & IL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-17-2007, 09:16 PM
Tom Tom is offline
Registered User
 
Join Date: Apr 2007
Posts: 13
Hi,
I've read the tuturial and have set it up but am getting permission denied, why?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-17-2007, 09:29 PM
Registered User
 
Join Date: Mar 2007
Posts: 4
Quote:
Originally Posted by Cirtex Admin View Post
Yep that would work but probably not the best way to do it.

Cheers
Okay, then what do u think, what is the best way to do cronjob?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-17-2007, 09:34 PM
Cirtex Admin's Avatar
Administrator
 
Join Date: Apr 2003
Location: New York City, NY, USA
Posts: 4,320
Hi,

wget sometimes is permissioned to be not allowed by user so some servers its disabled for users. Might want to try curl, lynx, if those are disabled too, you can try just /usr/bin/local/php /home/youruser/public_html/file.php for example will do or
php -q -f /home/user/public_html/file.php

Cheers
__________________
CirtexHosting Providing Affordable and Quality Web Hosting & Reseller Hosting since 2003
LINUX based CPANEL/WHM Shared and Reseller Web Hosting with Fantastico
Visit us at: http://www.cirtexhosting.com & http://www.hostv.com
I eat penguins for breakfast... ~ Servers Located in NJ & IL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-21-2007, 07:22 AM
Tom Tom is offline
Registered User
 
Join Date: Apr 2007
Posts: 13
I've tried php -q -f /home/user/public_html/ and I'm not getting the emails through now, does that mean it's working?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-21-2007, 09:30 AM
Registered User
 
Join Date: Mar 2007
Posts: 48
Quote:
Originally Posted by Tom View Post
I've tried php -q -f /home/user/public_html/ and I'm not getting the emails through now, does that mean it's working?
If you mean email about permissions being denied, then yes most likely it should be working.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-21-2007, 12:51 PM
Tom Tom is offline
Registered User
 
Join Date: Apr 2007
Posts: 13
Thanks, it must be working now cause its set for every minute and I've heard nothing for about 2 hours or so. Yippe!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 12:07 PM.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17