Permalink
Browse files

add 2 scripts to record timestamps

  • Loading branch information...
1 parent 5f51b75 commit 695edc3271950a63ddde38b2ea4fe22e83ae9910 @lukec lukec committed Oct 2, 2009
Showing with 15 additions and 0 deletions.
  1. +12 −0 hooks/bathroom.d/record
  2. +3 −0 hooks/plunger.d/record
View
12 hooks/bathroom.d/record
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+echo "bathroom recorder: $1 $2"
+if [ "$1" == "door" ]; then
+ if [ "$2" == "open" ]; then
+ perl -le 'print time' > status.d/last-open
+ elif [ "$2" == "closed" ]; then
+ perl -le 'print time' > status.d/last-close
+ fi
+fi
+
+
View
3 hooks/plunger.d/record
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+perl -le 'print time' > status.d/last-plunge

0 comments on commit 695edc3

Please sign in to comment.