i am having the same trouble -
the command that i am using on the cron is
wget /http://www.mywifeissodumb.com/forum/cronrss.php
the php script retrieves news feed info and creates forum postings
the files created in the main directory seem to have output information :
example 1 :
Code:
<br />
<b>Warning</b>: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in <b>/home/mhddom/public_html/forum/Sources/Subs-RSS2.php</b> on line <b>435</b><br />
<br />
<b>Warning</b>: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to http:80 (php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution) in <b>/home/mhddom/public_html/forum/Sources/Subs-RSS2.php</b> on line <b>435</b><br />
Feed Poster Configuration
example 2 :
Feed Poster Configuration
the text seen in example 2 is the same text that you see in your browser when you access that url
i tried putting
> /dev/null
and
> /dev/null 2>&1
(that is what the cpanel suggested )
here is what it says in cpanel just above the email address input
'
You can have cron send an email everytime it runs a command. If you do not want an email to be sent for an individual cron job you can redirect the command's output to /dev/null like this: mycommand >/dev/null 2>&1
'
the email i am getting has this info ( you can see it says saving to - )
Code:
--2012-02-15 22:15:01-- /http://www.mywifeissodumb.com/forum/cronrss.php
Resolving /http://www.mywifeissodumb.com... 69.65.49.32
Connecting to mywifeissodumb.com|69.65.49.32|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 581 [text/html]
Saving to: `cronrss.php.2'
0K 100% 61.6M=0s
2012-02-15 22:15:24 (61.6 MB/s) - `cronrss.php.2' saved [581/581]