Re: running cyradm commands from a script

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

 



Le Monday 15 October 2007, Jessi Berkelhammer(Jessi Berkelhammer 
<jberkelhammer@xxxxxxxx>) a écrit:


Hello,

> Ideally, I could use shell scripts to create a file with the
> cyradm commands, and run those. Is there a way to do this so it
> doesn't require the password to be entered interactively?


Try something like this
cyradm -u MY_LOGIN -w MY_PASSWORD MY_HOST << CYRADMSCRIPT
lm
lam user.*
CYRADMSCRIPT
Hope this helps!
-- 
http://www.glennie.fr
Tout est drôle, dès l'instant que ça arrive aux autres.
----
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