Il Saturday 12 April 2008 20:17:45 Ismail YENIGUL ha scritto: > Hi Alessio, > > A sample script may look like the following: > > > #!/bin/sh > > cmd=$1; > > if [ $cmd = "add_user" ] > then > > email=$2; # [EMAIL PROTECTED], see README.onchange > > /usr/local/bin/ezmlm-sub ~vpopmail/domain/listname $email > > fi > > if [ $cmd = "del_user" ] > then > > email=$2; # [EMAIL PROTECTED], see README.onchange > > /usr/local/bin/ezmlm-unsub ~vpopmail/domain/listname $email > > fi
Hi Ismail, i have edit your example like this: #!/bin/sh cmd=$1; if [ "$cmd" = "add_user" ]; then email=$2; /usr/local/bin/ezmlm/ezmlm-sub /home/vpopmail/domains/newmail.it/news/ $email fi if [ "$cmd" = "del_user" ]; then email=$2; /usr/local/bin/ezmlm/ezmlm-unsub /home/vpopmail/domains/newmail.it/news/ $email fi And now is OK! Also thanks to your example, I understand how the system onchange works. Ciao -- Alessio Cecchi is: @ ILS -> http://www.linux.it/~alessice/ Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/ @ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it @ LOLUG -> neo-Socio http://www.lolug.net !DSPAM:4806e346120505993820299!