repeat command until keypressed?

Carl Friis-Hansen ubuntuuser at carl-fh.com
Fri Oct 23 12:48:38 UTC 2009


On Fri, October 23, 2009 13:41, Eugeneapolinary Ju wrote:
> How can I write a bash script, that will repeat the commands until any key
> is pressed?
>
> e.g.:
>
> if keypressed=no then command1; command2; else exit 0; fi;
>

Forgot the actual reply, sorry

Could you use this solution, there are a number of methods.
http://linux.derkeiler.com/Mailing-Lists/SuSE/2008-04/msg00438.html

-- 
                         ---------=oOOo=---------
                           Carl Friis-Hansen
                           http://carl-fh.com/
                           Phone: +46 372 15033
                         ---------=oOOo=---------






More information about the ubuntu-users mailing list