Hi folks,

I use following script:-

# cd Linbread
TODAY=`date +"%m%d"`
DATA=`grep $TODAY linbread.dat`
HOUR=`date +"%H"`
if [ $HOUR -le 11 ]
	then TOD="Morning"
	elif [ $HOUR -ge 12 -a $HOUR -lt 18 ]
	then TOD="Afternoon"
echo $DATA | gawk -F"|" '{printf("%s\n\n%s",$2,$3)}' > $$tmp
fold -s -w60 $$tmp > $$tmp2
xmessage -timeout 300 -buttons Amen -title "Linbread - Good $TOD!  It's `date +"%A, %B %e, %Y"`"  -fn 9x15bold -bg SlateBlue -fg white -center -file $$tmp2
rm $$tmp $$tmp2

to read a .dat file displaying a "Bible verse of The Day"

.dat :-

0101|"The LORD shall preserve thy going out and thy coming in from this time forth, and even for evermore."|Psalms 121:8
0102|"Verily, verily, I say unto you, He that heareth my word, and believeth on him that sent me, hath everlasting life, and shall not come into condemnation; but is passed from death unto life."|John 5:24
0201|"And be not conformed to this world: but be ye transformed by the renewing of your mind, that ye may prove what is that good, and acceptable, and perfect will of God."|Romans 12:2
0202|"Love not the world, neither the things that are in the world. If any man love the world, the love of the Father is not in him...And the world passeth away, and the lust thereof: but he that doeth the will of God abideth for ever."|1 John 2:15,17

It also works on leap year. The verse will repeat each year.

Now I want adding following function:-

- sound
When the window popup a song will play
- window frame
- Heading
Bible Verse of The Day
- to replace "OK" with "Amen".  On clicking "Amen" the window will close.
- adding "Thanks be to God" above "Amen" button
- an animated background

sound file .wav and background .gif are available. Please advise what shall I add to the script to do the job as expected. TIA


We know that people use different software and tools to make their work flow easy and systematic. Also by project management software people can protect their important project data. Because security of project data is really necessary for everybody.