I am trying to setup a cron job to run a file. What is the command I need to use? I need to run public_html/rssblogposter/post.php on one of our domains.
Thanks for help in advance.
T
I am trying to setup a cron job to run a file. What is the command I need to use? I need to run public_html/rssblogposter/post.php on one of our domains.
Thanks for help in advance.
T
You can use "lynx -dump http://www.somedomain.com/rssblogposter/post.php"
There are other switches you can add.
Sitekeeper
DigitalClue.com
php public_html/rssblogposter/post.php should work
or
/path-to-php/php /home/user/public_html/rssblogposter/post.php
hmm, thanks guys, but
none of these above mentioned ones seem to work. What could be the problem?
Anyone?
You could try via cPanel. In cron manager add something like this;
cron job cPanel The top link even has pictures.PHP Code:php -q -f /home/user/public_html/rssblogposter/post.php /home/user/public_html/rssblogposter/ cron 0 10
![]()