I am looking for a way to redirect stdout and stdin of an interactive program. This program asks me for a username and a password. It looks like follow on the command prompt.
where the user enters his password and username. Where the user first enters his username and than password, and then the prgram exits. I wanted to redirect stdout and stdin in such a way that my perl program could run this small program for me, where the username, and the password are stored in my perl program as variables. I will be running this script on windows 2000. I am new to perl, any help would be greatly appreciated.
Thanks.