Simple alarm clock


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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

You need to login to post a comment.