Seva Adari wrote:
> Sacha Labourey wrote:
>
> > Hello,
> >
> > when you script cyradm, how do you answer the "Please enter your
password"
> > prompt from the script? using the "<" redirection does not work. Any
idea?
> >
> > I am using 2.0.6, saslpasswd, linux RH7.0 and TCL 8.x
> >
>
> Did you look at "expect"? Expect is pretty neat for handling
> interactive processes when you know what prompt to
> expect.
A simpler approach is to use the IMAP::Admin Perl module directly. Type
'perldoc IMAP::Admin' at your shell prompt to see how it works. This is the
module that the current version of cyradm uses internally. You can get the
latest version off CPAN <http://search.cpan.org>.