Projects
View all Projects

wp-shelltools

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

GitHub – managingwp/wp-shelltools: WordPress shell tools.
WordPress shell tools. Contribute to managingwp/wp-shelltools development by creating an account on GitHub.
github.com
0 Shares:

Comments are closed.