I got a strange behavior in my Python code. It runs fine in my Windows console
For example,
@cmd.exe : python file.py
Content of my file.py file
print("-------------------------- RANDOM STRING HERE! --------------------------------")
email = input()
print("-------------------------- RANDOM STRING HERE! --------------------------------")
name = input()
print("-------------------------- RANDOM STRING HERE! --------------------------------")
address = input()
print("-------------------------- RANDOM STRING HERE! --------------------------------")
print(email+name+address)
This same code doesn't work when I do:
curl ://filepath/file.py | sudo python3
in an a console under SSH. I already tried with PuTTY and Git Bash, but I am still getting the same error.
EOFError in SSH Console:

I already tried to use sys.stdin, but it doesn't work as expected.