Hemachandran Namachivayam wrote: > Hi, > > How can I redirect a password stored in a file to a program that uses > getpassphrase() function. I tried with input redirection and it didn't work. > Any suggestions is greatly appreciated.
For functions that really want to read from a terminal, you need to use expect or similar packages. See http://expect.nist.gov/. This is a useful package for other reasons as well (some of the other scripts it includes, for example "unbuffer"). Hugh.
