running cyradm commands from a script

Glennie Vignarajah glennie at glennie.fr
Tue Oct 16 03:18:09 EDT 2007


Le Monday 15 October 2007, Jessi Berkelhammer(Jessi Berkelhammer 
<jberkelhammer at desc.org>) 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.


More information about the Info-cyrus mailing list