#!/bin/sh # # fetchtweets.sh # # Convenience wrapper for tweetfetch.py # # Using ./tweets/.sentinel, it iteratively obtains new tweets since the last # run, and can thus be run regularly from cron without arguments. # # Copyright © 2017–2019 by martin f. krafft # Released under the Artistic Licence 2.0 # MYDIR="${0%/*}" cd "$MYDIR" export LC_ALL=$(locale -a | grep utf8 | head -1) ./tweetfetch.py $(cat tweets/.sentinel)