command line or cron job ?

Discussion in 'Site & Server Administration' started by skabt, Oct 25, 2010.

  1. #1
    recently my web server acting weird, it keep on reset my cronjob script before script completed the task, my web hosting provider suggest me to use command line to start script then using cron job (webserver), cause my site with huge data

    So my question is, would that make huge different ? What they(host provider) told is true ?

    My host spec.
    8gb ram
    2.8 quad xeon
    Full dedicated server.
    thanks
     
    skabt, Oct 25, 2010 IP
  2. scriptinstaller

    scriptinstaller Peon

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Server resets your cronjob? Please do explain this.

    What type of script?
     
    scriptinstaller, Oct 25, 2010 IP
  3. skabt

    skabt Banned

    Messages:
    285
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    123
    #3
    scrapping script :)
    it run half way and stop ....
     
    skabt, Oct 25, 2010 IP
  4. theausums

    theausums Peon

    Messages:
    321
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yes, that will happen, ur webserver (apache) restarts periodically
    trigger the script with the cronjobs via cli, and remember to set_time_limit(0); in ur php script :)
     
    theausums, Oct 27, 2010 IP