title: Bash Unix: How can i pause a process without using sleep command
body: <p>Hi im trying to pause the execution of a process so that a user cannot make multiple entries until 5 seconds have elapsed. I tried using sleep but sleep simply stops and then executes all the inputs the user ran while the process was asleep, i dont want there to be any input read from when the program was sleeping.</p>
  
  <p>example of what i want:  a chat bot
  input 1: hi
  output: "reply from program"
  input 2 (before 5 seconds is up): "whats new"
  -no output-
  input 3 (5 seconds have passed): "how are you"
  output: im fine.</p>
  
  <p>example of what sleep command does:
  input 1. "hi"
  output "hey"
  input 2 (before 5 seconds): "whats new"
  -no output- waits
  input 3: "how are you"
  output: "not much is new"
  output: "im fine"</p>