I have attached an upgrade to my previous cron-curl.sh script.
The improvments allow multiple sites to be cron'd using the same scripts/cron-curl.sh file ...without a need to create multiple shell scripts for each domain running on the same Drupal code base.

This works by accepting a parameter to the shell script, this can be a domain name, or a complete domain name & sub-directory.

Its execution for 'dev.example.com' would be would be as follows:

*/5 * * * * /var/www/html/drupal/scripts/cron-curl.sh dev.example.com /dev/null 2>&1

The same parameter system could be implemented in the other Drupal bundled scripts.

CommentFileSizeAuthor
#9 scripts-cron.patch1.11 KBlilou
#2 cron-curl.patch518 bytesUwe Hermann
cron-curl_0.sh67 bytesbudda
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

budda’s picture

Component: base system » other
Status: Active » Needs review

Simple but handy.

Uwe Hermann’s picture

FileSize
518 bytes

I rolled a patch for HEAD. Untested, though.

Dries’s picture

Looks handy. I'd be happy to commit this iff:

  1. cron-lynx.sh is updated accordingly. Best to keep both similar.
  2. The documentation is updated properly.
drumm’s picture

Status: Needs review » Needs work
Uwe Hermann’s picture

How about merging all of the scripts, dynamically checking whether lynx, wget, curl, links, w3m, whatever is available and using the first one which is found? Does that make sense?

budda’s picture

Version: x.y.z » 6.x-dev
Status: Needs work » Needs review

Any chance this cron-curl script is going to turn up in Core 6.x? It's been hanging around for ages, and is so small it hardly needs thinking about?

ChrisKennedy’s picture

Status: Needs review » Needs work

The comments in #3 still apply.

moshe weitzman’s picture

anyone up for documenting this?

lilou’s picture

Version: 6.x-dev » 7.x-dev
FileSize
1.11 KB

Reroll according to Dries comment #3

Just need to update documentation.

aspilicious’s picture

Version: 7.x-dev » 8.x-dev

Needs reroll for D8 (with proper patch format).

swentel’s picture

It also needs the cron key now, should'nt we just remove these files, I guess Drush is getting more and more widespread nowdays.

rcross’s picture

jhedstrom’s picture

Version: 8.0.x-dev » 8.1.x-dev
Status: Needs work » Postponed (maintainer needs more info)
Issue tags: +Needs issue summary update, +Needs title update

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

smustgrave’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

Since this moved to PNMI over 3 months ago, which is the threshold going to close as outdated.

If still a valid request please reopen address the tags added in #13