summaryrefslogtreecommitdiff
path: root/watch_aggietimed.sh
diff options
context:
space:
mode:
Diffstat (limited to 'watch_aggietimed.sh')
-rwxr-xr-xwatch_aggietimed.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/watch_aggietimed.sh b/watch_aggietimed.sh
new file mode 100755
index 0000000..d8cce82
--- /dev/null
+++ b/watch_aggietimed.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+socket=/tmp/aggietimed.sock
+env_file=/home/lizzy/work/simple_scripts/aggietime_cli/.env
+
+export $(cat $env_file | xargs)
+
+while true
+do
+ aggietimed -d -s $socket
+ if [ $? -eq 0 ]
+ then
+ break
+ else
+ sleep 1
+ fi
+done