Posted By

xxtjaxx on 12/21/09


Tagged

bashclock


Versions (?)

Simple alarm clock


 / Published in: Bash
 

just run it with ~/$ alarm.sh 05:00

  1. #! /bin/bash
  2. # This is a simple alarm clock!
  3.  
  4. while [ ! "$(date +%H:%M)" = "$1" ];
  5. do
  6. sleep 1
  7. done
  8. shift
  9. $($@)

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: xxtjaxx on December 21, 2009

sorry mised out on the bad work of snipplr.com . its "just run it with ~/$ alarm.sh 05:00 ;&gt your alarm sign ;&lt

You need to login to post a comment.