Weird cron job problem

Discussion in 'Programming' started by wholesalechecklist, Jun 8, 2007.

  1. #1
    So I have a cron job to run a rss2html php script to create an output file of static html.

    It used to work, but it suddenly stopped and I dont know why. I use hostmonster, for the record.

    Anyway, that it the basic background information.

    The cron job code it:

    usr/bin/php -f /home/swaythev/public_html/missionenvironment/news.php > /home/swaythev/public_html/missionenvironment/news.html
    Code (markup):
    I just realized that the cron job DOES create the output file, but it is completely empty. Anyone know why? My host is absolutely no help.
     
    wholesalechecklist, Jun 8, 2007 IP
  2. DeViAnThans3

    DeViAnThans3 Peon

    Messages:
    785
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did the PHP version changed?
    Is the RSS feed you use maybe got down? You should try to visit the news.php file via webbrowser to see whether or not it gives an error or blank page?
    Could you PM me the file contents?
     
    DeViAnThans3, Jun 9, 2007 IP