|
From: Loki Harfagr on 2 Oct 2006 14:05 Le Sun, 01 Oct 2006 10:52:26 -0700, ckrainey a ?crit?: > Simple Tea Timer Script > > > #!/bin/bash > > xterm -e \ > "echo ''; \ > echo ''; \ > echo ''; \ > echo ''; \ > echo ''; \ > echo ''; \ > echo ' **************************'; \ > echo ' * *'; \ > echo ' * Tea Timer Started !! *'; \ > echo ' * *'; \ > echo ' **************************'; \ > sleep 3" > ( > sleep 300 > aplay /usr/local/share/sounds/teatime.wav > aplay /usr/local/share/sounds/teatime.wav > aplay /usr/local/share/sounds/teatime.wav > aplay /usr/local/share/sounds/teatime.wav > aplay /usr/local/share/sounds/teatime.wav > xterm -e \ > "echo ''; \ > echo ''; \ > echo ''; \ > echo ''; \ > echo ''; \ > echo ''; \ > echo ' **************************'; \ > echo ' * *'; \ > echo ' * TEA IS READY *'; \ > echo ' * *'; \ > echo ' **************************'; \ > read key" > )& Ah, the Autumn games started ;D) A little bit cleaner and not using the unstable "echo" : --------- #!/bin/bash xterm -e \ "printf '\n\n\n\n\n\n ************************** * * * Tea Timer Started !! * * * **************************\n' sleep 3" ( sleep 150 for iiiii in $(seq 5) do aplay /usr/local/share/sounds/teatime.wav done xterm -e \ "printf '\n\n\n\n\n\n ************************** * * * TEA IS READY !! * * * **************************\n' read key" )& --------- Besides, I'd prefer a stronger tea, then 5 minutes are really too long, made it a 150 seconds :-) Now, waiting for the oneliner obfuscated version :D)
|
Pages: 1 Prev: sed & external script Next: Creating output file using sql statement through shell script |