Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AladinDridi/6b3e5a46e13db4c6d55df71e7bb3754e to your computer and use it in GitHub Desktop.
Save AladinDridi/6b3e5a46e13db4c6d55df71e7bb3754e to your computer and use it in GitHub Desktop.
1/write script shell like this
#!/bin/bash
ERRLOG=/path/wgetcron.log
TARGET=http://www.example.org/wp-content/plugins/paid-memberships-pro/scheduled/expirememberships.php
UA=WgetCron-ViaPlanficateursTachesOVH
wget -nv -U $UA -O /dev/null $TARGET >/dev/null 2>>$ERRLOG
2/chmod +x script
3/crontab -e and add the script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment