i cant think A blog belong to Mohammad Azwan bin Ali. Most of his writings are about his real life story, ideas, thoughts, moderate political views, computer, programming, tips & tricks, particularly in Linux…. and of course it includes some random unspecified crappy stuffs too! Don't forget to check Movies and Junkyard pages out!

Posts Tagged ‘alarm clock’

simple alarm clock with bash scripting

here is a simple bash programming that will execute alarm when it reach certain time setup by user
initially i coded just for exercise on bash scripting (practice make perfect right?) but i think it’s a good idea to share it with other people
here’s the code
#!/bin/bash
masa=”`date +%k:%M`”
mp3=”$HOME/Desktop/alarm.mp3″ #change this

if [ $# != 1 ]; then
echo “please [...]