[shell-discuss] redirection of password to a program that uses getpassphrase

2009-03-31 Thread Hemachandran Namachivayam
Thanks James and Hugh, I will check with the LDoms team to find out if they can provide a command line interface to support this feature. -Regards Hemachandran -- This message posted from opensolaris.org

[shell-discuss] redirection of password to a program that uses getpassphrase

2009-03-30 Thread James Carlson
Hugh McIntyre writes: > 1. Perl has an Expect.pm module. So you could use this, if you're > willing to install it or bundle this in Solaris. Note though that this > seems to be not installed by default, and since expect is really just a > tcl script, you're replacing one scripting language wi

[shell-discuss] redirection of password to a program that uses getpassphrase

2009-03-29 Thread Hugh McIntyre
Hemachandran Namachivayam wrote: > Hi Hugh, > > Thanks for the suggestion. My requirement would be *not* to use any other > packages (such as expect etc..). Is there a way to do so with just shell > comamds ? The reason that getpassphrase() works in expect is that expect makes a new pseudo-ter

[shell-discuss] redirection of password to a program that uses getpassphrase

2009-03-29 Thread Hemachandran Namachivayam
Hi Hugh, Thanks for the suggestion. My requirement would be *not* to use any other packages (such as expect etc..). Is there a way to do so with just shell comamds ? -Regards Hemachandran -- This message posted from opensolaris.org

[shell-discuss] redirection of password to a program that uses getpassphrase

2009-03-29 Thread Hugh McIntyre
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 n

[shell-discuss] redirection of password to a program that uses getpassphrase

2009-03-29 Thread Hemachandran Namachivayam
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. -Thanks and Regards Hemachandran -- This message posted from opensolaris.org