Table of Contents
Content Error or Suggest an Edit
Notice a grammatical error or technical inaccuracy? Let us know; we will give you credit!
Introduction
I made wp-shelltools because I was working on a number of different servers and platforms and needed a way to bring my “tool bag” with me to help with some mundane tasks.
Important Tools
cron-shim.sh
There is an article I wrote about WordPress cron
- Post command that can be run afterwards which can be another script or curl to post to a webhook.
- Utilizes wp-cli cron command to run all cron events.
- Automatically detects webroot (htdocs/public_html) if one level below WordPress Root.
- Checks if WordPress root exists and is a WordPress installation.
- Logging to a file or syslog with a tag and domain name of the WordPress instance using wp-cli options
- Log includes output and errors, date and time, how long the cron ran for and the CPU time.
- Can specify a heartbeat URL for monitoring (BetterUptime/Uptimerobot)
README
Github Repository
Join our Newsletter
Comments are closed.