#!/bin/sh
# $1 start time
# $2 end time
# $3 stream
# $4 title
# FIXME: workaround to cope with tomorrow is to schedule the call to
# pick for tomorrow, e.g. echo 'pick arg arg arg arg' | at tomorrow
at "${1}" <<EOF
exec > "/tmp/pick-${1}-${2}-${3}.log"
fe ${3}
echo ts-stop ${3} | at "${2}"
ts ${3} ${4}
EOF
