Created
April 17, 2017 08:56
-
-
Save AladinDridi/6b3e5a46e13db4c6d55df71e7bb3754e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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