What's the command for setting the cron.php to run on cronjob (and path)?

I can't seem to get the following run:
php -q /httpdocs/cron.php
php -q httpdocs/cron.php
php -q /cron.php
php -q http://www.foo.com/cron.php

Comments

go through this link

go through this link http://drupal.org/node/23714
It may give you detailed insight.

-Imran

Hi The URL of the

Hi

The URL of the cron.php page requires a "cron key" to protect against
unauthorized access. Your site's cron key is automatically generated during
installation and is specific to your site. The full URL of the page, with the
cron key, is available in the "Cron maintenance tasks" section of the Status
report page at Administration > Reports > Status report.

As an example for how to set up this automated process, you can use the
crontab utility on Unix/Linux systems. The following crontab line uses the
wget command to visit the cron.php page, and runs each hour, on the hour:

<?php
0
* * * * wget -O - -q -t 1 http://example.com/cron.php?cron_key=YOURKEY
?>

Replace the text "http://example.com/cron.php?cron_key=YOURKEY" in the
example with the full URL displayed under "Cron maintenance tasks" on the
"Status report" page.

Tushar Bodake