[ILUG] kbhit() for bash?

Stephen Shirley diamond at csn.ul.ie
Mon Sep 4 12:15:27 IST 2000


Mornin,
	Quick question for the bash gurus:
Is there any way to test to see if there is something
on stdin? I'm writing a small script to monitor a file,
to see if it changes. Every second the script wakes up and checks.
I want to be able to press a key at any time and spawn a program.
But I don't want the script to be waiting for key input. Any ideas?

Steve





More information about the ILUG mailing list