Sam Clemens wrote:
David C. Rankin wrote:
Listmates,
I'm stuck. I would like to write a bash routine that tests for the presence of a user keypress ('q' or 'e') to exit a loop from within the loop without stopping the loop to wait like with read. Basically just execute the loop until the user presses a key, any key, to stop it. I can't figure out how do that will a keypress.
As a work around, I'm using a basic file ".runmcelog" file for that purpose:
while [ -f "/home/david/.runmcelog" ]; do sudo /usr/sbin/mcelog --k8 done
I would fork off the rest of the processing code in the background.
Like this
(sorry Sam, you'll get two copies.. oops.) Bingo! You hit the nail on the head. Thanks to all that responded. Now I have "several" more arrows to add to my quiver.... -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org