blob: 48f32f393f389e6e2f5922c7b1ac7e838201f24c [file] [log] [blame]
#!/bin/sh
# settings
tagtime=/home/corpus/tmp/tagtime
# ensure we're running after 0900 UTC; complex due to daylight savings.
# If we're running in the 08xx UTC hour-space, sleep for 1 hour; when
# we wake, we will be in 09xx.
(
TIME="%e,%U,%S"; TZ=UTC; export TIME TZ
if date | egrep '^... ... .. 08:'; then
date; echo "sleeping for 1 hour to compensate for DST"
sleep 3600 ; date
fi
)
touch $tagtime