Created
February 18, 2017 18:36
-
-
Save paxperscientiam/25df82e5d02ddc6f1483e4d8fd9c8430 to your computer and use it in GitHub Desktop.
Warm that cache with GNU Wget
This file contains hidden or 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
| #!/opt/local/bin/bash | |
| warm () { | |
| url="${1}" | |
| wget -nd -r -l 2 -e robots=off --delete-after "${url}" | |
| } | |
| warm "$@" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DISCLAIMER:
Do not blindly execute code you find on the Internet.
USE ARE YOUR OWN PERIL.