aboutsummaryrefslogtreecommitdiffstats
path: root/remind.sh
blob: 4d478f0da057571df517afa56138f21bb5267711 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh -e

# to echo from stdin
#stdin=$(cat)

# if [ -z $stdin ] ; then
#     echo "No stdin set"
# fi

# echo $stdin

# DESCRIPTION=$1
# echo $DESCRIPTION

if [[ "$#" < 3 ]] ; then
    echo "You need to give me more parameters"
fi

PARAMS=$@
echo $@

if [[ -z "${TW_HOOK_REMIND_REMOTE_HOST}" ]] ; then
    echo "There is not TW_HOOK_REMIND_REMOTE_HOST variable set."
    exit 1;
else
    echo "TW_HOOK_REMIND_REMOTE_HOST set"
fi

ssh $TW_HOOK_REMIND_REMOTE_HOST '
cat ~/.reminders/work.rem
'