Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial commit of sleeptill script.

  • Loading branch information...
commit b97ce390d44e09c9ea0ac309fed7e06355d33ef4 1 parent 205fa64
@egan authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 sleeptill
View
20 sleeptill
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+##
+# sleeptill -- sleep till specified time
+#
+# usage -- sleeptill HH:MM
+#
+# todo -- more options, error checking
+#
+# written -- 18 February, 2012 by Egan McComb
+#
+# revised --
+##
+
+while [[ $(date +%R) != "$1" ]];
+do
+ sleep 1;
+done
+
+exit 0
Please sign in to comment.
Something went wrong with that request. Please try again.