Not able read any input ! error:Resource temporarily unavailable

I want to create an automation script but I could not use read command.
Getting the error : bash: read: read error: 0: Resource temporarily unavailable

Hey @vipulkrishna Probable solution would be:

  1. Exit or Kill bash running instances.
  2. Run script with sudo.
  3. Wait for the resource to revoke.

Thank u for the reply ! Sometimes read resources comes back sometime does not. I am not able to bottleneck this problem. I need more clarity about where is the read resources are busy.