Results 1 to 2 of 2

Thread: Cron job not working

  1. #1
    Join Date
    Nov 2010
    Posts
    115
    Thanks
    27
    Thanked 0 Times in 0 Posts

    Default Cron job not working

    Hi All,

    I am using ubuntu 10.04. I am trying to send mails for a particular time from php script.

    Steps i have done

    1) In terminal i gave crontab -e

    2) I saved the below line in my editor and saved it

    39 18 * 11 1-5 /usr/bin/php http://localhost/cron/cron.php

    But i am not getting any mails. Can any one help me how to achieve this. I googled many links but none is working. Is thr anything to install or any changes, please let me know if thr r any!!

    When i directly type the url in my browser i am getting message but not from cron job

  2. #2
    Join Date
    Nov 2010
    Posts
    115
    Thanks
    27
    Thanked 0 Times in 0 Posts

    Default

    I got it working


    instead of http://localhost/cron/cron.php we have to give /var/www/cron/cron.php. Then everything will work fine

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •