Piping to a python script

view story

http://www.unix.com – Hello, I have a python script (not created by me), let's call it myscript, which I call with several parameters. If I don't provide the --password parameter, the script will ask the user to input the password. So I run the script like this: Code: /wherever/myscript --username=whoever /some/other/path/parameter That makes it ask for a password and wait for user input. If I enter the wrong password an error message will be displayed. I want to pipe to this script some preset text to enter as the password, so that I can mimic entering an invalid password by hand. Code: echo 'wro (HowTos)