Bash script "read" not pausing for user input when executed from SSH shell

Posted by Aaron Hancock on Stack Overflow See other posts from Stack Overflow or by Aaron Hancock
Published on 2012-11-30T16:00:59Z Indexed on 2012/11/30 17:04 UTC
Read the original article Hit count: 311

Filed under:
|
|
|

I'm new to Bash scripting, so please be gentle.

I'm connected to a Ubuntu server via SSH (PuTTY) and when I run this command, I expect the bash script that downloads and executes to allow user input and then echo that input. It seems to just write out the echo label for the input request and terminate.

wget -O - https://raw.github.com/aaronhancock/pub/master/bash/readtest.sh | bash

Any clue what I might be doing wrong?

UPDATE: This bash command does exactly what I wanted

bash <(wget -q -O - https://raw.github.com/aaronhancock/pub/master/bash/readtest.sh)

© Stack Overflow or respective owner

Related posts about bash

Related posts about unix