Cron Job Help

Discussion in 'Site & Server Administration' started by comanche82, Feb 21, 2008.

  1. #1
    I don't know if this is the right section but here I go.

    I have a windows and a linex hosting account from the same hosting company. I need to set up a cron job for my site that is on the windows server. I set up a "mycron.php" file under my linex hosting account pointing to my site on the windows server.

    This is the code that I have in my "mycron.php" file.

    <?php include('http://www.my windows site.com/media/cron.php'); ?>
    Code (markup):

    This is what I have in my "command" box for my cron job.

    /usr/local/bin/php /hsphere/local/home/folder/my linex hosting site.com/mycron.php 
    Code (markup):
    This is my “cron.php” file for my script:
     <?php
    ini_set('display_errors', 0);
    ini_set('display_startup_errors', 0);
    ini_set('error_reporting', 0);
    set_time_limit(0);
    include 'config.php';
    include 'semiconfig.php';
    include_once(DOC_ROOT . 'includes/Main.php');
    require_once(DOC_ROOT . "includes/Parser.php");
    $parser = new Parser();
    $parser->makeUpdate();
    if( AUTO_DEL_MOVIES == '1' ){
    	include_once(DOC_ROOT . 'includes/Rss.php');
    	$rss = new Rss();
    	$rss -> deleteOldRssData( MOVIES_AGE );
    }
    
    ?>
    Code (markup):
    Whenever the cron job gets executed I get an email with this:
    My website Title (error: )<br /> 
    Code (markup):

    If someone can help me I would really appreciate it. I don't know what other information you might need?

    Thank You
     
    comanche82, Feb 21, 2008 IP
  2. st1905

    st1905 Well-Known Member

    Messages:
    573
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    135
    #2
    /usr/local/bin/php -q
    Code (markup):
    try this one and let me know if it works.
     
    st1905, Feb 22, 2008 IP
  3. comanche82

    comanche82 Well-Known Member

    Messages:
    732
    Likes Received:
    79
    Best Answers:
    0
    Trophy Points:
    118
    #3
    No it didn't work. But thanks for trying. Now im getting my home page emailed to me without the css?
     
    comanche82, Feb 22, 2008 IP