Closed Thread
Results 1 to 8 of 8

Thread: crons jobs

  1. #1
    damaged-city69 is offline x10Hosting Member damaged-city69 is an unknown quantity at this point
    Join Date
    Aug 2011
    Posts
    10

    crons jobs

    hi i dont know yesterday i setup the crons but it is not working not even once the corn file were ran

  2. #2
    vv.bbcc19's Avatar
    vv.bbcc19 is offline Community Advocate vv.bbcc19 is just really nice
    Join Date
    Jun 2010
    Location
    India
    Posts
    1,505

    Re: crons jobs

    Try the format used in these samples.Revert back if you still have a problem.

    Run 'foo.php' every Sunday, capturing output:

    * * * * Sun /usr/local/bin/php $HOME/foo.php >> $HOME/log/foo.txt 2>&1

    Run 'email.php' every day at midnight:

    0 0 * * * /usr/local/bin/php $HOME/email.php

    Run job1 every 10 minutes (except on the hour), job2 on the hour (except at midnight), job3 at midnight (except Monday) and job4 at midnight on Monday, capturing output:

    10-50/10 * * * * $HOME/bin/job1 >> $HOME/log/jobs.txt 2>&1
    0 1-23 * * * $HOME/bin/job2 >> $HOME/log/jobs.txt 2>&1
    0 0 * * 0,2-6 $HOME/bin/job3 >> $HOME/log/jobs.txt 2>&1
    0 0 * * Mon $HOME/bin/job4 >> $HOME/log/jobs.txt 2>&1
    BCV | Community Support Representative
    █ x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  3. #3
    damaged-city69 is offline x10Hosting Member damaged-city69 is an unknown quantity at this point
    Join Date
    Aug 2011
    Posts
    10

    Re: crons jobs

    still its not working i first i used this format
    thecronfile.php?secret=code
    and than i used this format
    /$home/bin/folder/cronfile.php?secret=code
    (instead of the secret there is another name
    and there is a number instead of the code)

  4. #4
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: crons jobs

    Quite a few of your cron-job's will self terminate. Free hosting only allows them to execute every 5 minutes; any of them that execute within 5 minutes of each other (including the minute-by-minute cron which will conflict with everything) will disappear without a trace as it's not allowed.

    On free hosting you can have 1 that executes every 5 minutes; if you upgrade to Prime, Illuminated, or Premium that limit goes away, but with the current setup for crons I can see on your account, they'll keep disappearing.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  5. #5
    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,635

    Re: crons jobs

    Did you write this script yourself or is it by a third party? Why do you need the secret code?
    Nothing is always absolutely so.

  6. #6
    damaged-city69 is offline x10Hosting Member damaged-city69 is an unknown quantity at this point
    Join Date
    Aug 2011
    Posts
    10

    Re: crons jobs

    so that no one can run them thts why

    ---------- Post added at 07:27 PM ---------- Previous post was at 07:19 PM ----------

    so the Abuse Compliance Officer meant that i can only have 1 cron that also 5 min right.uys plzz explain me properly

  7. #7
    calistoy's Avatar
    calistoy is offline Free Support Volunteer calistoy is just really nice
    Join Date
    Aug 2008
    Location
    USA
    Posts
    5,598

    Re: crons jobs

    From the TOS:
    * Crons: We do not allow more than one cron within a 5 minute time period per account. This means if you have two crons you must make sure that both do not go off within 5 minutes of each other.

  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,635

    Re: crons jobs

    Quote Originally Posted by damaged-city69 View Post
    so that no one can run them thts why

    ---------- Post added at 07:27 PM ---------- Previous post was at 07:19 PM ----------

    so the Abuse Compliance Officer meant that i can only have 1 cron that also 5 min right.uys plzz explain me properly
    It is clear that having the code is because you only want to be the only person to run it.
    But if you run it from a cron and store it outside the Document Root, nobody can run it but you.
    Running it directly will not include the query string. You have to access it via the web, ie wget

    The system is set up so that you must have 5 minutes between any execution of cron jobs.
    a) You cannot run 1 minute crons. They must be at least 5 minutes
    b) You cannot run one job at 0,5,15 etc and another at 2,7,12 etc. They are not spaced 5 minutes apart. Same thing goes if you run one every five minutes and another at 0 and 30 each hour.
    Nothing is always absolutely so.

Closed Thread

Similar Threads

  1. Crons jobs
    By tarikkulbay87 in forum Free Hosting
    Replies: 1
    Last Post: 01-18-2011, 03:24 PM
  2. Crons
    By ashbow9794 in forum Free Hosting
    Replies: 2
    Last Post: 01-02-2011, 03:50 AM
  3. International Jobs Program - Earn $ 0.1 - $ 1 per Jobs
    By groove.cell14 in forum Earning Money
    Replies: 3
    Last Post: 10-17-2010, 01:36 AM
  4. crons
    By kolanich in forum Free Hosting
    Replies: 9
    Last Post: 07-11-2010, 10:02 AM
  5. Crons?
    By notnam in forum Free Hosting
    Replies: 1
    Last Post: 10-20-2008, 04:33 PM

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