[PLUG] bash command to wait for key press

David Fleck david.fleck at mchsi.com
Sat Nov 22 16:19:01 UTC 2003


On Sat, 22 Nov 2003, Marvin J. Kosmal wrote:
> How about
>
> echo -n "Please insert a CD"
> read cd
> echo "Thanks for the CD"
>
> read will wait for the input and return key..
>
> HTH
> >

Or:

  read -p "Please insert a CD: " cd


to get it in one line.

--
David Fleck
david.fleck at mchsi.com





More information about the PLUG mailing list