[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ispman-users
Subject:    Re: [Ispman-users] Changing homedir server, mailbx server, etc.
From:       Jim Canon <jcanon () yaw ! org>
Date:       2004-06-21 16:02:41
Message-ID: 40D706A1.2040502 () yaw ! org
[Download RAW message or body]

Thank you! That works great except for one thing... I needed to use 
ispman.replaceUserAttributeValues instead of ispman.addUserAttributeValues.

Thanks again!
Jim

Cory Petkovsek wrote:

>On Mon, Jun 21, 2004 at 08:39:38AM -0400, Jim Canon wrote:
>  
>
>>Cory,
>>
>>Thank you very much for you help. I am seeing the following error though.
>>
>>Bareword found where operator expected at ispman.changeDefaultServer.pl 
>>    
>>
>Oops, this is what happens when you start with a shell script and convert to
>perl!  ;)
>
>I had all sorts of errors in there.  Try this one:
>
>----
>#!/usr/bin/perl -w
>
>my $serv="new_server";
>
>while (<>) {
> print $_;
> m/(\S+)\s+(\S+)/;
> system "ispman.addUserAttributeValues -d $1 -u $2 -a mailHost $serv";
> system "ispman.addUserAttributeValues -d $1 -u $2 -a fileHost $serv";
> system "ispman.addUserAttributeValues -d $1 -u $2 -a DestinationAddress $serv";
> system "ispman.addUserAttributeValues -d $1 -u $2 -a mailRoutingAddress "
>   . "$2\@$serv";
>}
>----
>
>Cory
>
>  
>


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Ispman-users mailing list
Ispman-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ispman-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic