+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 5 of 8

Thread: Cant get crontab to work, PLEASE HELP !!!

  1. #1
    Napolong
    Guest

    Cant get crontab to work, PLEASE HELP !!!

    Hi All



    I have now spent the last 2 hours going through every result on google, using each code to try and get this to work.



    Bsically, i want every hour, to run a php file i have.



    What i have done,



    1) Created a (ssh).txt file


    Code:

    7 14 * * * /home/fhlinux139/c/cabubble.co.uk/user/htdocs/email_test.php

    *This code has changed sooo many times to try and fix it.



    2) Logged in using putty

    3) used "crontab ssh.txt" command to run it.

    4) checked using -l that it has actually been picked up (which is has)

    5) waited and waited and waited for my php file to run, but it doesnt.



    aaaaaaaaaahhhhhhhhhhhhh



    Im sure if it is thecode in .txt file which is wrong, like i said, ive used sooo many different combinations ect to link to the php file, i have also change the time each time so i know that bit aint the problem.



    Please help

    More:


  2. #2
    anhquang300722
    Guest

    The cron you have listed will run daily at 2:07PM server time. It won't run hourly.



    If you want it to run hourly at 7 past each hour then you need to use:



    7 * * * * /home/fhlinux139/c/cabubble.co.uk/user/htdocs/email_test.php

  3. #3
    baothanh
    Guest


    Quote:







    7 * * * * php -q /home/fhlinux139/c/cabubble.co.uk/user/htdocs/email_test.php


    try like this.. often u need to tell ur server who wanna run ur script.. here we want php interpretor to take over

  4. #4
    hieulechi
    Guest

    Thanks for you help,



    The timer was just to test it for that time so make sure my path for the php was correct.

    After your replies and thinking about it, maybe the server time is different i dont know. I have now tried using just the minute time, and still now luck.



    I think the path to the php is the problem, i have tired the php -q option and still no luck.



    Any other ideas???

  5. #5
    thienha_336
    Guest

    Try this




    Code:

    7 14 * * * /usr/bin/wget -O - -q -t 1 http://www.yourdomain.com/path/to/email_test.php

    Kailash

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. Crontab site backup help
    Can anyone tell me if this cpanel cron is correct for a complete site backup? It seems to work ok but something does not seem quite right and my host...
  2. How does php work
    Hello. I was just trying to learn php and I can not figure it out for nothing. How does it work? I have been reading all the self help pages from my...
  3. How does this work
    [url= how does it work? I am trying to make a site like this but I am just lost. I just want to know how it makes the ringtones... rep will be left...
  4. Self-Employment: Work Schedule or No Work Schedule?
    Hello Guys, I was wondering if any of you work off a work schedule while you work at your office or home. Right now I don't work off a schedule...
  5. Crontab Command
    I am trying to set up crontab to run a file on my server: http*//www*resalebroker*com/real-estate-books/cronf.php I am having trouble writing a...

Tags for this Thread

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
Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Welsh Yiddish