PDA

View Full Version : cron and input file



beedub
07-23-2007, 07:28 PM
Looking for any help. Trying to run a Cron job that posts to my blog. I have used a couple of different scripts

/usr/local/bin/php /home/backrepo/public_html/xmlrpc.php

and

/usr/local/bin/php /index/backrepo/public_html/post/post.php

with each I get an email that states:

Warning: main(./wp-config.php): failed to open stream: No such file or
directory in /home/backrepo/public_html/xmlrpc.php on line 12 (along with seven other similar warnings)

or

Could not open input file: /index/

Respectively.
What is a newbie doing wrong?

Thanks.

silentcollision
07-24-2007, 01:14 AM
I'm using:


/usr/bin/php $HOME/public_html/path/to/file.php

Try that and post back.