Koozali.org: home of the SME Server

abl-batch_users-0.5

jane

abl-batch_users-0.5
« on: April 28, 2003, 06:53:23 PM »
Hi,

I've done modify the script and it runs successfully without any errors with the following format:

username:passwd:firstname:lastname:group:dept:company:streetadd:city:phoneno.

all fields are mandatory. If I left out blanks at the one of the field, I got the error. My question is how to make it can accept if one or more of the fields are empty? For example if I dont give the companyname and city.

Please advice. Thanks.

jane

Re: abl-batch_users-0.5
« Reply #1 on: April 28, 2003, 07:20:30 PM »
hi everybuddy,

I was thinking that the point that I should know is about perl. It is related to the place that I want to modify. So I just surfing and finding all abou the perl on the net and and do some test and luckily finally I've solve my things!

What I did is just put ' * ' at the script.pl file at this line : $input_split[7] =~ s/\s+$*//;

Thanks.