An interactive script is a one that interacts with the user and requires user input. ... If not provided the expected input, the script remains in a waiting state until the user provides the input, or the process is killed manually (using ctrl+z or the kill command from another shell), or the connection times out.