Closed Thread
Results 1 to 2 of 2

Thread: problems with cronjobs

  1. #1
    nord-see72 is offline x10Hosting Member nord-see72 is an unknown quantity at this point
    Join Date
    Sep 2011
    Posts
    3

    problems with cronjobs

    hey everyone
    i want to run a cronjob once a day to execute an php file but i hav no idea what expression is should put in the command box
    thanks

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: problems with cronjobs

    Code:
    /usr/bin/php -q  /home/igor/public_html/cron/mail_job.php >>/home/igor/public_html/cron/cron_log.txt 2>&1
    Replace "igor" with your cPanel username and adjust paths as needed (you do not have to put them in a directory named cron). They can be any path below /home/igor . Having them below /home/igor/public_html means they are accessible from the web.

    cron_log.txt will contain any error messages or regular output (ie print or echo commands) from your script. Not 100% necessary, but helps with debugging or logging info.
    Nothing is always absolutely so.

Closed Thread

Similar Threads

  1. Cronjobs.
    By magicz9412 in forum Free Hosting
    Replies: 16
    Last Post: 12-21-2010, 10:21 PM
  2. Cronjobs
    By binaliws in forum Free Hosting
    Replies: 1
    Last Post: 12-02-2009, 04:09 AM
  3. Cronjobs and the log
    By OdieusG in forum Programming Help
    Replies: 6
    Last Post: 05-10-2009, 07:15 AM
  4. CronJobs
    By kaotic in forum Free Hosting
    Replies: 0
    Last Post: 10-07-2007, 09:06 PM
  5. Cronjobs
    By spino in forum Free Hosting
    Replies: 1
    Last Post: 09-27-2007, 05:01 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