Re: running cyradm commands from a script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

with Cyradm is writen in perl and cyrus comes a perl packet you can use
to do all things you do with cyradm with perl.
Have a lock at  cyrus-imapd-2.3.8/perl/imap

perldoc Cyrus::IMAP             # imclient library
perldoc Cyrus::IMAP::Admin      # administrative library
perldoc Cyrus::IMAP::Shell      # cyradm shell

Quoting Jessi Berkelhammer <jberkelhammer@xxxxxxxx>:

Hello.

In order to automate some processes, I was hoping to run cyradm from a
script. The O'Reilly "Managing IMAP" book specifies how cyradm can
evaluate Tcl commands, by passing the 'file' option to cyradm. Old man
pages for cyradm online also show the option to pass a file parameter.
However, that isn't an option for 2.3.8, which we are running. Is there
a way to do this, or something similar, with 2.3.8?

Another option could be to have a script call cyradm with a list of
commands to run, like:
cyradm localhost < file_containing_cyradm_commands

However, this is interactive & requires a password; is there a way to
get around this so I can pass the cyradm commands directly from a script?

Thank you,
Jessi B.
Downtown Emergency Service Center
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




--------------------------------------------------------------------------------
M.Menge                                 Tel.: (49) 7071/29-70316
Universitaet Tuebingen                  Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung mail: michael.menge@xxxxxxxxxxxxxxxxxxxx
Waechterstrasse 76
72074 Tuebingen

Attachment: smime.p7s
Description: S/MIME krytographische Unterschrift

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux