From: Chris Sharp Date: Wed, 15 Apr 2015 16:16:16 +0000 (-0400) Subject: Adding script to schedule the PINES survey X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b716642fb4371b5a0da64041586e6c6ccafcdbd6;p=contrib%2Fpines.git Adding script to schedule the PINES survey --- diff --git a/pines-survey/schedule-survey.sh b/pines-survey/schedule-survey.sh new file mode 100755 index 0000000..ae963f6 --- /dev/null +++ b/pines-survey/schedule-survey.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +Usage () { +echo "Usage: $0 " +exit +} + +if [ -z "$1" ]; then +Usage +fi + +START_DATE="$1" +END_DATE=$(date --date "$START_DATE + 1 week" +%F) + +at midnight $START_DATE <