1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Replace Cron jobs with?

Discussion in 'Site & Server Administration' started by katalin, Sep 6, 2010.

  1. #1
    My hosting doesn't allow 1 and 5 minutes crons and I need them, can I use something else instead of crons?
    PS: I use crons to refresh URL's.
     
    katalin, Sep 6, 2010 IP
  2. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #2
    You could trigger the job when a web page is accessed but it's not quite the same and if you don't get a visitor for say 2 minutes you miss a run.
    You could have an external machine run a job every minute to call a specific page on your site which holds the cron code, a variation on the above, this would of course need another machine somewhere.

    Really it's just going to be a whole heap easier to up and move hosts to a more suitable one.
     
    tolra, Sep 6, 2010 IP
  3. eSupun

    eSupun Well-Known Member

    Messages:
    105
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #3
    There are couple of free remote cron job services. You can try them.
     
    eSupun, Sep 6, 2010 IP
  4. katalin

    katalin Active Member

    Messages:
    349
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #4
    Can you post some links?
     
    katalin, Sep 6, 2010 IP
  5. eSupun

    eSupun Well-Known Member

    Messages:
    105
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #5
    Google this.
    "free offsite cron jobs" without quotes. And you'll get dozens of websites who offer this service.
     
    eSupun, Sep 6, 2010 IP
  6. katalin

    katalin Active Member

    Messages:
    349
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #6
    The only result I get is this thread. Anyways there aren't a lot of websites that offer 1 min crons for free.
     
    katalin, Sep 7, 2010 IP
  7. eSupun

    eSupun Well-Known Member

    Messages:
    105
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #7
    I just tried to help you. If you decided not to use my method, then DON'T!
    That's up to you.

    I could have help you in a better way if you have showed some respect to the replies of others who tried to help you.
     
    eSupun, Sep 7, 2010 IP
  8. RRWH

    RRWH Active Member

    Messages:
    821
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    70
    #8
    It is not that difficult to do what you want.

    How often can you run a cron job?

    If you can write a simple shell script then you can do it yourself and use sleep 60 in a loop to run something every minute.
     
    RRWH, Sep 8, 2010 IP
  9. katalin

    katalin Active Member

    Messages:
    349
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #9
    Can you please help me on this?
     
    katalin, Sep 9, 2010 IP
  10. slayerduck

    slayerduck Active Member

    Messages:
    163
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #10
    #!/bin/sh
    while true
    do wget -O /dev/null "http://url-that-needs-to-be-refreshed.com" 2> /dev/null
    sleep 60
    done
    Code (markup):
     
    slayerduck, Sep 10, 2010 IP
  11. yorick

    yorick Peon

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Not entirely sure, but WP-Cron may work for you.
     
    yorick, Sep 18, 2010 IP
  12. RumpledElf

    RumpledElf Well-Known Member

    Messages:
    1,054
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    100
    #12
    What exactly are you trying to do?

    I think there's a meta refresh tag ...sites usually use it to redirect somewhere else after X seconds but you can use it to make a page refresh itself automatically too.
     
    RumpledElf, Sep 18, 2010 IP
  13. katalin

    katalin Active Member

    Messages:
    349
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #13
    I found a good website, but it's not free: cronless.com
     
    katalin, Oct 7, 2010 IP