Op 07-06-11 23:47, Alan Bover schreef: > Hi, I missed an utility in SOGo for delete the users from the database (for > example, if a user-account gets corrupted, or a user leaves a company, etc). > That's why I created a simple python script that I share with you. For run it, > MySQLdb module for python needs to be installed.
Nice! Just what I need ;-) But it's an interactive shell and I would like to give direct commands. This works in a bash script: ------------ sogodel <<EOD user delete $user exit EOD echo ------------ And because I also use mysql authentication, I needed this too: ------------ mysql <<EOD use sogo; DELETE FROM sogo_users WHERE c_uid="$user"; EOD ----------- With regards, Paul van der Vlis. -- Linux systeembeheer Groningen http://www.vandervlis.nl -- users@sogo.nu https://inverse.ca/sogo/lists