K
kazaam
Hi,
I'm writing a gui with ruby and glade and so far it works well. Now the program I write a gui for has an option which wants you to type a password in the console. I start it this way:
system("anotherapp --encrypt")
then in the commandline happens something until it gets printed:
Password:
And it wants me to type in a password. I want to send this password from my gui to the cmdlline. But how can I get the Password in it? I tried to pipe it with:
system("echo 'pwd' | anotherapp --encrypt")
but this doesn't work at all.
Any idea how to do this?
greets
I'm writing a gui with ruby and glade and so far it works well. Now the program I write a gui for has an option which wants you to type a password in the console. I start it this way:
system("anotherapp --encrypt")
then in the commandline happens something until it gets printed:
Password:
And it wants me to type in a password. I want to send this password from my gui to the cmdlline. But how can I get the Password in it? I tried to pipe it with:
system("echo 'pwd' | anotherapp --encrypt")
but this doesn't work at all.
Any idea how to do this?
greets