Originally Posted by keimasi
It execute completely and and do whatever should to do. But I mean i want to disable " Enter key" on keyboard during that script is executing and users wont be able to stop my script by pressing Enter key.
you know if user press "Enter" it can not continue and will stop
Sorry, I am still confused!
Pressing "Enter" as a response to the "read" command in your script should not stop the script. Is it stopping the script? How is user able to stop the script by pressing "Enter key"?
I believe, "read" needs a "Enter" to understand the stdin has ended. So I am not sure "disabling Eneter key" will be possible at all if you are reading from stdin.
If you want to prevent user entering blank line as a response to the read command, you can follow what prowla suggested.
If this is not the case, can you please post the relevant parts of the script (replacing sensitive information, of course), the intended output, and the output when the user presses enter after the read statement and the script stops?