Little Girl's Mostly Linux Blog

CloseOnKeyPress

Close on key press

This page was last updated on July 25, 2011.

Use this in a Bash script to get the script to close the window when any key is pressed:
#!/bin/bash

echo -n "Press any key to close this window."
read keypress


Obligatory Happy Ending

And they all lived happily ever after. The end.

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Comment:

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: