Simple Alarm Clock

It’s 12:30 noon and i was writing the manpro record with great difficult, this time it was lengthy so i am too susceptible that i can’t complete the work. So i thought it is better to restrict me with the work for a certain time limit.

BINGO

this provoked me to write a simple alarm bash script for my work

#!/bin/bash
while [ $(date +%M:%S) != $1 ]
do
      printf "please continue working on manpro record";
      echo '';
      sleep 1;
done
echo 'okay you can go now'
rhythmbox-client --play;

I am going to develop a full featured bash alarm application in my summer holidays.

for now i have exams to write upto March 4.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s