repeat command until keypressed?

Eugeneapolinary Ju eugeneapolinary81 at yahoo.com
Fri Oct 23 11:41:43 UTC 2009


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 :\



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20091023/9a766e02/attachment.html>


More information about the ubuntu-users mailing list