+ Reply to Thread
Results 1 to 6 of 6

Thread: cron jobs help

  1. #1
    TarinC is offline x10 Lieutenant TarinC is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Toronto, Canada
    Posts
    349

    cron jobs help

    i never used cron jobs before, i dont like doing things wrong, so i need to double check. I want cron to run a php file.

    Tell me if the following is right:
    Click on cron jobs tab in cpanel
    Click on Standard
    Select the time you want to run the file
    type in the "Command to run:"
    I wrote "/home/cpanelusername/public_html/location/file.php"

    is this correct or do i have to do something else?
    Last edited by TarinC; 09-15-2006 at 04:26 PM.

  2. #2
    Christopher's Avatar
    Christopher is offline Retired Christopher is an unknown quantity at this point
    Join Date
    Jun 2006
    Location
    USA
    Posts
    7,330

    Re: cron jobs help

    Looks right. Just don't forget to fill in "cpanelusername", "location", and "file.php".

  3. #3
    TarinC is offline x10 Lieutenant TarinC is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Toronto, Canada
    Posts
    349

    Re: cron jobs help

    yea, they were examples.

    i keep getting emailed:
    /bin/sh: /home/cpanelusername/public_html/location/file.php: Permission denied

    any ideas on why this is?
    Last edited by TarinC; 09-15-2006 at 06:05 PM.

  4. #4
    Chris S's Avatar
    Chris S is offline Retired Chris S is an unknown quantity at this point
    Join Date
    Mar 2005
    Posts
    1,036

    Re: cron jobs help

    try something like

    command:
    php - /home/cpanelusername/public_html/location/file.php

    I would love to change the world, but they won't give me the source code

  5. #5
    TarinC is offline x10 Lieutenant TarinC is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Toronto, Canada
    Posts
    349

    Re: cron jobs help

    it doesnt work... the following gets emailed to me, althought the file is there.

    Status: 404
    X-Powered-By: PHP/5.1.6
    Content-type: text/html

    No input file specified.
    Last edited by TarinC; 09-19-2006 at 03:15 PM.

  6. #6
    TarinC is offline x10 Lieutenant TarinC is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Toronto, Canada
    Posts
    349

    Re: cron jobs help

    sorry for double post.. it works the first way, i had the wrong permissions on the file.. :nuts:

    If i dont want cron to email me then i leave the email box empty?

+ Reply to Thread

Similar Threads

  1. Cron Jobs
    By stuffradio in forum Scripts & 3rd Party Apps
    Replies: 9
    Last Post: 11-12-2007, 07:01 PM
  2. Scripts PHP con cron
    By uriens in forum Soporte
    Replies: 3
    Last Post: 08-25-2006, 06:43 AM
  3. cron jobs....
    By swirly in forum Scripts & 3rd Party Apps
    Replies: 1
    Last Post: 05-22-2006, 04:19 PM
  4. Cron
    By Brandon in forum Free Hosting
    Replies: 6
    Last Post: 01-05-2006, 05:46 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