Talking Countdown With Bash On Linux
Page 1 of 1
Talking Countdown With Bash On Linux
- Code:
#!/bin/bash
COUNT=$1
#
# Usage ./countdown_5_Extra.sh 5
#
#
while [ $COUNT -gt 0 ]; do
echo $COUNT | espeak
let COUNT=COUNT-1
done
echo GO!
You will need espeak installed
Code Update Link
https://app.box.com/s/c4pwupnllsdf3ymrqdijc36k1if3rr9y
- Code:
sudo apt-get install -y espeak
forum.linuxcareer.com/threads/1655-Bash-reverse-counting-with-while-loop
Last edited by jamied_uk on 23rd May 2016, 21:23; edited 1 time in total
Re: Talking Countdown With Bash On Linux
- Code:
#!/bin/bash
COUNT=$1
#
# ./countdown_5_Extra.sh 5
#
# Start
msg="Self Destruct, In "
msgtwo="Self Destruct, Sequence Canceled! It Is NOT youre time yet! HA Ha"
echo $msg | espeak
#
while [ $COUNT -gt 0 ]; do
echo $COUNT
echo $COUNT | espeak
let COUNT=COUNT-1
done
echo GO!
#
echo $msgtwo | espeak
Similar topics
» BASH Linux Talking IP Script
» Linux Bash Talking Function
» Countdown Timer Using A File On Linux Bash Script Example
» Talking Clock With Bash On Linux & espeak
» Simple Talking Linux Bash Function
» Linux Bash Talking Function
» Countdown Timer Using A File On Linux Bash Script Example
» Talking Clock With Bash On Linux & espeak
» Simple Talking Linux Bash Function
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum