aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2020-03-06 20:21:52 -0500
committerPaul Duncan <pabs@pablotron.org>2020-03-06 20:21:52 -0500
commit3b2311e0e9f0563d0c75d97b42ecfcecb49ae0a2 (patch)
tree579e5f863ca6b493e3d4ced3a7b692675015ff9a
parent12833eed3a08f07b627ede3174546d8e294ec693 (diff)
downloadalonzo-mood-calculator-3b2311e0e9f0563d0c75d97b42ecfcecb49ae0a2.tar.bz2
alonzo-mood-calculator-3b2311e0e9f0563d0c75d97b42ecfcecb49ae0a2.zip
add better crontab example
-rw-r--r--README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index ba8fe8a..12f7082 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,9 @@ Setup instructions (Debian):
# set up cron job that calls bin/get-stock.py daily
# example:
- @daily bin/get-stock.py ORCL > public/current.json
+ @daily path/to/bin/get-stock.py ORCL > path/to/public/current.json
+
+ # another example (refresh 4 times a day)
+ 0 */6 * * * path/to/bin/get-stock.py ORCL > path/to/public/current.json
# symlink apache or whatever to public/ directory