Cyradm question

Robin M. robin at primus.ca
Tue Apr 13 08:38:23 EDT 2004


On Tue, 13 Apr 2004, Dave Carrera wrote:

> Can I pass a statement to cyradm to facilitate some automation we are trying
> out.
>
> ---- EXAMPLE ----
>
> # echo 'user/user1' | cyradmin login stuff here
>
I use netcat for scripting, here is an example.

<snip>
#!/bin/bash
#
echo ". login cyrus password" > imap_commands
for uservar in `cat userlist`
do
echo ". setquota user/${uservar} (STORAGE 1000000)" >> imap_commands
done
echo ". logout" >> imap_commands
cat imap_commands | /usr/bin/netcat localhost 143
</snip>


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




More information about the Info-cyrus mailing list