+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Cornjob Setting

  1. #1
    martin9 is offline x10Hosting Member martin9 is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    7

    Cornjob Setting

    Hi..

    I want to run a project after every 1 hour in 24 hours, every days, every weeks, every months. I have set it in this cpanel..but admin continue suspend me (coz need to gap 5 min between 2 corn)..

    So I want to know what will be actual setting ? Pls help me.

  2. #2
    Anna's Avatar
    Anna is offline I am just me Anna is a name known to allAnna is a name known to all
    Join Date
    Aug 2007
    Location
    Sweden
    Posts
    6,526

    Re: Cornjob Setting

    Do you have more then one cron job set? If so what are the settings for the other cron job?
    Do you have trouble reaching your site?
    Check here first: News and Announcements


    Don't forget that x10hosting has an irc server as well. Come and join the fun
    server: irc.x10hosting.com, main channel: #x10hosting
    There's a lot helpful users there if need help building your site

  3. #3
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,267

    Re: Cornjob Setting

    The wrong cornjob setting can cause problems with the kernel (sorry, couldn't resist).

    To run a job on the hour, every hour, etc

    0 * * * * job

    To run a job at 1AM every day, etc

    0 1 * * * job

    If you put a * in the first position, the job will run once a minute and get you in trouble.

    As Anna pointed out, if you have two jobs running every hour on the hour,

    0 * * * * jobA
    0 * * * * jobB

    they overlap and get you in trouble. You have to stagger the times.


    You can have three jobs

    0 * * * * job1
    20 * * * * job2
    40 * * * * job3

    They run twenty minutes apart and you have no problem

    If you have only one cron job and it runs only once a week, you can still get in trouble if that one job is a resource hog.

  4. #4
    Danielx386 is offline x10 Elder Danielx386 is an unknown quantity at this point
    Join Date
    Oct 2009
    Location
    Australia
    Posts
    698

    Re: Cornjob Setting

    will I run into trouble if I do this? I want a job that run every 90 mins

    0 * * * * job1
    90 * * * * job2
    95 * * * * job3

    Daniel

  5. #5
    Anna's Avatar
    Anna is offline I am just me Anna is a name known to allAnna is a name known to all
    Join Date
    Aug 2007
    Location
    Sweden
    Posts
    6,526

    Re: Cornjob Setting

    Quote Originally Posted by Danielx386 View Post
    will I run into trouble if I do this? I want a job that run every 90 mins

    0 * * * * job1
    90 * * * * job2
    95 * * * * job3

    Daniel
    yes, you could do because every other time the 90 minute cron and the hourly cron would both be running on the hour.

    Although I honestly have no idea if setting it to 90 is even possible, I figured it to be interperated as such as the first number (90 in your case) would be read as 90 minutes passed the hour...
    Do you have trouble reaching your site?
    Check here first: News and Announcements


    Don't forget that x10hosting has an irc server as well. Come and join the fun
    server: irc.x10hosting.com, main channel: #x10hosting
    There's a lot helpful users there if need help building your site

  6. #6
    martin9 is offline x10Hosting Member martin9 is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    7

    Re: Cornjob Setting

    Ya account Manager I had set 2 jobs and setting was

    30 * * * *
    30 * * * *


    Thanks Account Manager..thanks all...
    I am trying that way which u have told.
    Last edited by martin9; 11-26-2009 at 08:55 AM.

  7. #7
    dawn1980 is offline x10Hosting Member dawn1980 is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    4

    Re: Cornjob Setting

    I want to run 2 job .
    First would be run every one hour and
    second would be run 10 min later after 1st job run .

    So please tell me what would be syntax ?

  8. #8
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,267

    Re: Cornjob Setting

    Code:
    0 * * * *  firstJob
    10 * * * * secondJob

  9. #9
    dawn1980 is offline x10Hosting Member dawn1980 is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    4

    Smile Re: Cornjob Setting

    Thak you very much descalzo

  10. #10
    misson is offline Community Advocate misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,391

    Re: Cornjob Setting

    Quote Originally Posted by LadyAnna View Post
    Although I honestly have no idea if setting it to 90 is even possible,
    It's not. The minute field can only take values in the range 0-59.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Setting up email in Outlook 2007
    By Armacci Design in forum Free Hosting
    Replies: 2
    Last Post: 01-09-2009, 08:38 AM
  2. Replies: 9
    Last Post: 12-11-2008, 08:58 AM
  3. Setting up a domain
    By Polarith in forum Free Hosting
    Replies: 2
    Last Post: 07-06-2008, 01:04 PM
  4. Setting up a shop to help support X10hosting
    By lionheart8 in forum Feedback and Suggestions
    Replies: 2
    Last Post: 08-13-2007, 10:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers