Is there any way of writing pexpect like small program which can launch a process and pass the password to that process? I don't want to install and use pexpect python library but want to know the logic behind it so that using linux system apis I can build something similar.
+2
A:
You could just use "expect". It is very light weight and is made to do what youre describing.
terry
2009-12-30 22:28:31
could you send me the link?
AustinPower
2009-12-30 22:30:17
I think this is it http://expect.nist.gov/
Whisty
2009-12-30 22:38:46
Thanks a lot. it really helps!
AustinPower
2009-12-30 22:53:41