diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-08 20:44:06 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-08 20:44:06 +1000 |
commit | 8013f18177bcad2053c2802be4724a900c751a85 (patch) | |
tree | b193a409f6a6170c1aecd011760f106b4d6c3228 /test/shell_script_input_prompt.sh | |
parent | c9653337569f6a3ffab11733a86667a42a9e6bf3 (diff) |
add test script that reads user input for subprocess testing
Diffstat (limited to 'test/shell_script_input_prompt.sh')
-rwxr-xr-x | test/shell_script_input_prompt.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |