From 8013f18177bcad2053c2802be4724a900c751a85 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Wed, 8 Aug 2018 20:44:06 +1000 Subject: [PATCH] add test script that reads user input for subprocess testing --- test/shell_script_input_prompt.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 test/shell_script_input_prompt.sh diff --git a/test/shell_script_input_prompt.sh b/test/shell_script_input_prompt.sh new file mode 100755 index 000000000..eb3a31374 --- /dev/null +++ b/test/shell_script_input_prompt.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# For testing subprocesses that require input +# Ask the user for login details +read -p 'Username: ' user +read -sp 'Password: ' pass +echo +echo Hello $user