#!/bin/bash
# /usr/local/bin/silver.rrd.update
# http://crystalfaeries.net/posix/bin/silver.rrd.update
# celeste:crystalfaery SILVER.RRD.UPDATE 2016-04-20 07:59:49+00:00
# NOTE: Not yet reviewed for XDG compliance, and likely depends on other crystalfaeries.net scripts.
price=$(< /usr/local/share/ag/kitco.txt)
# echo "price: ${price}"
# echo "rrdtool update /usr/local/share/ag/silver.rrd N:${price}"
rrdtool update /usr/local/share/ag/silver.rrd "N:${price}"
exit $?
# ERROR: apply smoother: SEASONAL rra doesn't have valid dependency: MIN
# what command did I create the database with in the first place?
syntax highlighted by Code2HTML, v. 0.9.1