repeat command until keypressed?

Carl Friis-Hansen ubuntuuser at carl-fh.com
Fri Oct 23 12:19:05 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;
>
> thanks :\
>
>
>
>       --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>


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






More information about the ubuntu-users mailing list