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.

Cron jobs every minute?

Discussion in 'Site & Server Administration' started by thuankkk, Jun 30, 2009.

  1. #1
    Hi,

    I just wanna ask you guys:
    do you need cron jobs every minute? To do what?

    Any help is appreciated :)

    (Plz don't ask me why I make this question)
     
    thuankkk, Jun 30, 2009 IP
  2. crumblepie

    crumblepie Well-Known Member

    Messages:
    2,612
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Cron jobs every minute would put a very high load on your server. You only need them if your script needs to do specific tasks at specific times. Basically you are telling the server to run a specific file at certain times of the day - preferably NOT every minute :)
     
    crumblepie, Jun 30, 2009 IP
    thuankkk likes this.
  3. LimeLike

    LimeLike Banned

    Messages:
    100
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Every mins are crons are use full if you have private data or logs being transferd to ftp then you want to move into a unreachable directory
     
    LimeLike, Jun 30, 2009 IP
    thuankkk likes this.
  4. thuankkk

    thuankkk Active Member

    Messages:
    503
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    95
    #4
    Thank you guys. rep+ :)

    However, can anyone tell me what makes you need cron jobs every minute like crazy, and willing to pay for it?
     
    thuankkk, Jun 30, 2009 IP
  5. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,077
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    130
    #5
    Why would someone pay for cron job ?
     
    deriklogov, Jun 30, 2009 IP
    thuankkk likes this.
  6. thuankkk

    thuankkk Active Member

    Messages:
    503
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    95
    #6
    Good question!

    Good answer: because some web hosting providers do disable cron jobs, or limit number of cron jobs and/or limit minium interval (every 5 or 10 minutes only). If I need cron jobs every minute like crazy, I'll pay.

    But my question is the reasons that make someone need cron like crazy. Can you help me?
     
    thuankkk, Jun 30, 2009 IP
  7. w4r3z

    w4r3z Banned

    Messages:
    6
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    People will probably use it for spamming/sending bulk emails.

    Example: If you have a host, which allows 500 emails to be sent in 1 hour, you could create a custom script/or use an existing script that supports emailing with a limit of 500 emails per hour. You would need a cron to do so if your host don't know you are using their server to send bulk emails. That way, they won't notice you compared to sending all 500 emails at once.

    Just my 2 cents.
     
    w4r3z, Jun 30, 2009 IP
    thuankkk likes this.
  8. Narrator

    Narrator Active Member

    Messages:
    392
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    80
    #8
    I have an example of when a every minute cron job would be useful.

    I wrote a script for an organization where someone could send a text message with someone's name and it would text them back with that person's phone number.

    The cron job would check the inbox of the email address that people would send the texts to, then look up the name and respond with the phone number.

    The response time depended on how often the cron job would run so the most ideal would be every minute for a quick response but at the same time it puts a load on the server.

    I ended up not using the script since the hosting company limited me to 10 minute cron jobs and I am too impatient for that, I felt anything over 5 minutes would be too long of a response time.
     
    Narrator, Jun 30, 2009 IP
  9. thuankkk

    thuankkk Active Member

    Messages:
    503
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    95
    #9
    Thank you, w4r3z. rep+

    However, imo, spammer won't pay me :D
     
    thuankkk, Jun 30, 2009 IP
  10. thuankkk

    thuankkk Active Member

    Messages:
    503
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    95
    #10
    Thanks Narrator :)
    If I'm hosting provider, I won't either allow my users to run thing every minute :D

    You can check some service that provide 5 min. cron jobs, e.g setcronjob.com, webbasedcron.com, cronless.com (this site seems to suspend my cron after one day?!).
     
    thuankkk, Jun 30, 2009 IP
  11. crumblepie

    crumblepie Well-Known Member

    Messages:
    2,612
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    160
    #11
    Another example of a script that would need to run cronjon every minute is a hosting uptime checker.
     
    crumblepie, Jul 2, 2009 IP
  12. thuankkk

    thuankkk Active Member

    Messages:
    503
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    95
    #12
    Yep. Some site uptime monitor service do check users' sites every 1, 2, 3, 5 minutes.
     
    thuankkk, Jul 2, 2009 IP
  13. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #13
    1 Minute Crons can also be used in email list sending rather than sending 1000's of mails at a single time you can set a cron and send 5 - 10 emails every min etc..
     
    Bohra, Jul 4, 2009 IP
  14. xsimio

    xsimio Greenhorn

    Messages:
    52
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #14
    sometimes U really need a cron every minute.

    for example to gather some data to create some very precise graphics for uptime, latency, traffic.

    sometimes 5 minutes is not enough.

    sometimes U will need to set up a daemon to make this dirty job even at 10 second, or 30 seconds, and with cron I don;t think is possible.
     
    xsimio, Jul 11, 2009 IP
    thuankkk likes this.