Title: Run wp-cron.php from cron: correct syntax?
Last modified: August 21, 2016

---

# Run wp-cron.php from cron: correct syntax?

 *  [David M.](https://wordpress.org/support/users/david-m/)
 * (@david-m)
 * [12 years ago](https://wordpress.org/support/topic/run-wp-cronphp-from-cron-correct-syntax/)
 * **I have a question about how to trigger correctly wp-cron.php for my site.**
   I need manual cron jobs because I have a site that is kind of an archive for 
   RSS feeds with very few actual visits.
 * Most tutorials I found tell me to create a cron job with a syntax like this:
   `
   wget -q -O - http://yourwebsite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1`
 * But I can’t do that. My host allows cron jobs with very strict limitations: **
   only URLs**, no shell commands like wget. So, I could simply paste the URL, ok?
   `
   http://yourwebsite.com/wp-cron.php?doing_wp_cron`
 * Wrong again! My host only allows absolute URLs with no parameters, so I can’t
   include the **?doing_wp_cron** bit.
 * So, my question is: **does yourwebsite.com/wp-cron.php correctly trigger WordPress
   cron?** Is the ?doing_wp_cron bit strictly necessary?
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Tigr](https://wordpress.org/support/users/tigr/)
 * (@tigr)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/run-wp-cronphp-from-cron-correct-syntax/#post-4875316)
 * Hi!
 * AFAIK, you do not need any parameters to wp-cron.php. If that doing_wp_cron parameter
   is not set, the WP will understand you are calling it from an external script
   and will try to get a lock and continue its job.
 * Tigr
 *  Thread Starter [David M.](https://wordpress.org/support/users/david-m/)
 * (@david-m)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/run-wp-cronphp-from-cron-correct-syntax/#post-4875317)
 * Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Run wp-cron.php from cron: correct syntax?’ is closed to new replies.

## Tags

 * [cron](https://wordpress.org/support/topic-tag/cron/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [David M.](https://wordpress.org/support/users/david-m/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/run-wp-cronphp-from-cron-correct-syntax/#post-4875317)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
