04-21-2009
i want it to prefrom the countdown on screen. Like go from one number to the other
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am taking a class in UNIX and have written a script that needs to countdown from a number that is read in from the keyboard to zero. If no number is given the start of the countdown should default to 10.
I can't get this to do the default
#! /bin/sh
echo Enter a number here to countdown... (2 Replies)
Discussion started by: froggwife
2 Replies
2. Shell Programming and Scripting
was wondering if there was a script that would countdiwn the days until christmas (3 Replies)
Discussion started by: trob
3 Replies
3. Shell Programming and Scripting
Hi guys, I've found two nifty little scripts on these forums one which detects if the F5 key has been pressed:
#/bin/sh
_key()
{
local kp
ESC=$'\e'
_KEY=
read -d '' -sn1 _KEY
case $_KEY in
"$ESC")
while read -d '' -sn1 -t1 kp
do
_KEY=$_KEY$kp
... (0 Replies)
Discussion started by: rich@ardz
0 Replies
4. Shell Programming and Scripting
Hi all,
Does anyone know of any FUN countdown script that I can use for my script? At the moment, am just using sleep 10 or more and then print stuff into the screen to allow more time for the user to decide whether they want to continue running the script or abort?
Just thought of wanting... (3 Replies)
Discussion started by: newbie_01
3 Replies
5. Shell Programming and Scripting
Hello, I have another problem with my script - I would like to have a countdown timer visible on the screen, and at the same time, I want te be able to do something else. And when the time runs out, I need to know about that inside the script somehow and do some action. I guess that would require 2... (3 Replies)
Discussion started by: xqwzts
3 Replies
6. Shell Programming and Scripting
In the below bash when the perl is it possible to hide the commands from running on screen and display a process countdown?
For example, on the cygwin screen now the user sees each process in the command running as running protocol refGene, running protocol popfreq_all, etc... Could a... (0 Replies)
Discussion started by: cmccabe
0 Replies
7. Ubuntu
I would like this to work with seconds as well.
#!/bin/bash
#
if ; then
echo "Incorrect usage ! Example:"
echo './CountDown.sh -d "Jun 10 2011 16:06"'
echo 'or'
echo './CountDown.sh -m 90'
exit 1
fi
now=`date +%s`
if ; then
until=`date -d... (7 Replies)
Discussion started by: drew77
7 Replies
8. UNIX for Beginners Questions & Answers
Hello. I am pretty new to unix and shell scripting and I was wondering if there might be a way to banner a countdown timer inside a script. We currently have an existing script that does a 2 minute sleep but thought it might be fun to actually make it banner a countdown timer until it is finished.... (3 Replies)
Discussion started by: thumbelina
3 Replies
LEARN ABOUT DEBIAN
gameclock
GAMECLOCK(6) Games Manual GAMECLOCK(6)
NAME
gameclock - a simple game clock
SYNOPSIS
gameclock
DESCRIPTION
This manual page documents briefly the gameclock command.
gameclock is a simple application designed to track the time spent thinking by the players during a chess game. Various ways of tracking
time are supported, with only `countdown' (aka `blitz') and `fisher' for now. The graphical interface is keyboard driven and is intended to
be minimal and simple. The code is made to be extensible to other game types.
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (--). A summary of options is included
below.
-h, --help
Show summary of options. This includes the program's version and license.
-v, --verbose
Show progress information to standard output. More `-v' will display more information: timestamps then game state engine.
-f, --fullscreen
Start the application in fullscreen mode.
KEYBINDINGS
Most of the interface is keyboard-driven, apart from the initial clock and game configuration.
space start the game / end turn
shift keys
end the turn, but only for the appropriate side (left or right side)
p pause game
control-r, escape
reset game - this resets all counters and clocks to the initial configuration, use this to restart the game.
f toggle the fullscreen mode
control-q
quit application
SEE ALSO
xboard(1), http://gnomecoder.wordpress.com/chessclock/.
AUTHOR
gameclock was written by Antoine Beaupre.
August 13, 2008 GAMECLOCK(6)