Results 1 to 4 of 4
  1. #1
    Full Member Code Monkey's Avatar
    Join Date
    June 11th, 2007
    Posts
    337
    Hostgator Cron Job
    Can someone tell me how to set up a cron job at HostGator? Specifically, how to tell it to run a PHP file I have in my public_html file? I had this set up at my old host and can't remember exactly how it was done..

    Something like:

    /bin/php -q /blah/blah/url/file.php

    Thanks

  2. #2
    ABW Ambassador PatrickAllmond's Avatar
    Join Date
    September 20th, 2005
    Location
    OKC
    Posts
    1,219
    You are pretty close. I don't use hostgator but I was able to find this via Google.

    http://forums.hostgator.com/showthread.php?t=5996
    ---
    This response was masterly crafted via the fingers of Patrick Allmond who believe you should StopDoingNothing starting today.
    ---
    Focus Consulting is where I roll | Follow @patrickallmond on Twitter
    Search Engine Marketing | Search Engine Optimization | Social Media | Online Video

  3. #3
    Full Member Code Monkey's Avatar
    Join Date
    June 11th, 2007
    Posts
    337
    I owe you one, Patrick!

  4. #4
    More Cheesier Than Ever Cheesehead's Avatar
    Join Date
    January 18th, 2005
    Location
    Land of The NFL Champs!
    Posts
    2,942
    Enter this using the Advanced Option:
    curl -s -o /dev/null http://www.yourdomain.c0m/yourphpfile.php

    Then set the day(s) and time you want to run.
    This World is Not My Home
    We're gonna go inside, we're gonna go outside, inside and outside. . . And then we're gonna go go go and we're not gonna stop til we get across that goalline! Quotes from the movie Rudy, 1993

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. cron job unzipping protocol
    By Ron Bechdolt in forum Programming / Datafeeds / Tools
    Replies: 3
    Last Post: February 10th, 2010, 11:41 AM
  2. Help setting my cron job!
    By Ricardo Dacosta in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: June 19th, 2008, 09:35 AM
  3. Deleted Cron Job
    By bettylou in forum Programming / Datafeeds / Tools
    Replies: 8
    Last Post: March 27th, 2008, 12:55 AM
  4. Cron Job Question
    By Doug247 in forum Programming / Datafeeds / Tools
    Replies: 9
    Last Post: March 18th, 2008, 01:13 PM
  5. Cron job
    By templus in forum ShareASale - SAS
    Replies: 22
    Last Post: July 29th, 2007, 03:50 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
  •