cron job is eating my head! Plz help!

Discussion in 'Site & Server Administration' started by indya, Oct 9, 2007.

  1. #1
    I've installed one script [php script used for BH SEO purpose] , in which user manual suggest to set up a cron job for this line to execute after every 6 hours-

    php -q/home/myusername/public_html/rss_pinger.php [there is a blank space between php and -q]

    I've entered my email while setting up the cron to see the result and i am getting this error report after every 6 hours--

    Where i've gone wrong??:confused:
     
    indya, Oct 9, 2007 IP
  2. tandac

    tandac Active Member

    Messages:
    337
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #2
    looks like you really are missing a space:

    php -q /home/my_user_name/public_html/rss_pinger.php

    If need be put an extra space between -q and /
     
    tandac, Oct 9, 2007 IP
  3. DG-Cult

    DG-Cult Peon

    Messages:
    355
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, maybe you missed some space, if it doesn't work you can try one of these commands.

    1. /usr/local/bin/php /home/username/public_html/yourfolder/yourfile.php
    
    2. GET http://www.DOMAIN.com/yourfolder/yourfile.php > /dev/null
    
    3. lynx -dump http://DOMAINNAME.com/yourfolder/yourfile.php > /dev/null
    
    4. curl http://www.DOMAIN.com/yourfolder/yourfile.php > /dev/null
    
    5. php public_html/yourfolder/yourfile.php
    
    6. php -q /home/USERNAME/public_html/yourfolder/yourfile.php
    
    7. cd /home/ USERNAME /public_html/yourfolder ; /usr/local/bin/php /home/ USERNAME /public_html/yourfolder/yourfile.php
    
    8. php -f /home/www/index.php
    
    9. php -q /home/username/www/yourfolder/yourfile.php
    Code (markup):
    Sometimes different hosting require a different cron commands, I have hosted my sites in a few different host and usually I use command number 4 or 6 to make the cron work.
     
    DG-Cult, Oct 9, 2007 IP