The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron Question

Discussion in 'General Discussion' started by habibzadeh.amir, Nov 9, 2011.

  1. habibzadeh.amir

    habibzadeh.amir Registered

    Joined:
    Nov 9, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    hi,
    how can i pervent from crontab concurrent run ???
    thats mean when my crontab Take too long , with this crontab another crontab not runs...
    please help me ...

    best regards,
    amir
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    That's not how cron works. If you're worried about your scrips overlapping, I would suggest creating a lock file and having your script check for the that lock, so if it is executed while another instance is running, it doesn't actually do anything. Cron jobs are pretty independent from each other.
     
Loading...

Share This Page