Go Back   Dedicated Server Hosting | VPS Hosting | Virtual Private Servers Forum > Support > Linux Server Hosting
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-28-09, 07:35
BOD Member
 
Join Date: May 2009
Posts: 50
Default Two Different Cron Jobs?

I need separate cron jobs and was wondering if I can have more than one? I guess I’m asking if I can have two separate scripts and two separate folders?

Last edited by sandybeach : 05-28-09 at 17:44.
Reply With Quote
  #2 (permalink)  
Old 05-28-09, 11:14
BOD Member
 
Join Date: May 2009
Posts: 50
Default

Someone correct me if I’m wrong, but I believe you can have as many cron jobs setup as you want. I would think the only limit would be the amount of cpu resources you might have to run them on.
Reply With Quote
  #3 (permalink)  
Old 05-28-09, 11:25
BOD Member
 
Join Date: May 2009
Posts: 51
Default

What exactly is a cron job? Is this something I will have to do myself once I have my website up and running? Or is this something that the host will be doing?
Reply With Quote
  #4 (permalink)  
Old 05-28-09, 11:32
BOD Member
 
Join Date: May 2009
Posts: 50
Default

Hi Madmax,


A cron job is an automated system. The best example I can give you is this. Say you have a blog and you have 200 subscribers to your blog newsletter. You can set up a time and date for this to be mailed out to your subscribers using cron. There are many different uses for a cron job, this is just one example and I tried to make it as simple as possible. I’m sure others can shed some light on this for you as well.
Reply With Quote
  #5 (permalink)  
Old 05-30-09, 09:23
BOD Member
 
Join Date: May 2009
Posts: 50
Default

Thanks techgirl, I thought it was possible, but I was not sure enough to give it a try without asking. Thanks for you help.
Reply With Quote
  #6 (permalink)  
Old 06-02-09, 11:11
BOD Member
 
Join Date: May 2009
Posts: 45
Default

If you're going to be running multiple cron jobs, then the best way to do it would be to have them run at different times. That way the server wouldn't be overloaded with multiple cron jobs running at the same time. With good cron management, you should be able to have as many cron jobs as you want.
Reply With Quote
  #7 (permalink)  
Old 06-03-09, 04:17
BOD Member
 
Join Date: May 2009
Posts: 50
Default

Userdan, that helps a lot. Thanks for the information. I was wondering if I did more than one, if I should schedule them at different times.
Reply With Quote
  #8 (permalink)  
Old 06-03-09, 07:06
Moderator
 
Join Date: Mar 2009
Posts: 363
Default

Yes, it is highly recommended to run them at separate times. Scheduling them at one time could be very load intensive and is likely to result in stability issues on the server.
Reply With Quote
  #9 (permalink)  
Old 06-05-09, 19:53
BOD Member
 
Join Date: May 2009
Posts: 51
Default

Quote:
Originally Posted by techgirl View Post
Hi Madmax,


A cron job is an automated system. The best example I can give you is this. Say you have a blog and you have 200 subscribers to your blog newsletter. You can set up a time and date for this to be mailed out to your subscribers using cron. There are many different uses for a cron job, this is just one example and I tried to make it as simple as possible. I’m sure others can shed some light on this for you as well.
Thanks techgirl for answering my question. I know I'm a little behind on my thank yous, but I feel like a sponge and I'm asking questions and then applying them. I am really enjoying my experience with bodhost!
Reply With Quote
  #10 (permalink)  
Old 07-19-09, 20:02
BOD Member
 
Join Date: Jul 2009
Posts: 49
Default

Cron jobs are extremely helpful; I used to run an online pet sim and I used cron jobs to automatically change each pet's age (one day older at midnight) and choose the winners of the daily "pet shows" (they all ran at the same time, but it only required one cron job), among other things.

If you don't have cron jobs at your disposal, there's a script called "PseudoCron" that works as an alternative.
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 04:16.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2008, BODHost.com. All rights reserved.