Re: AW: Apache: adding massive amount of users for .htaccess from text file

2004-02-20 Thread Adrian von Bidder
On Friday 20 February 2004 16.24, Erik Dörnbach wrote: ... Hi, Could you please avoid starting a new thread every time you reply to a message? Thanks -- vbi -- It is easier to write an incorrect program than understand a correct one. pgp0.pgp Description: signature

AW: Apache: adding massive amount of users for .htaccess from text file

2004-02-20 Thread Erik Dörnbach
wow! > > > #!/usr/bin/perl > > > > > > while (<>) { > > >($username, $password)=split /:/, $_, 2; > > chomp($password); > > > >system("/usr/bin/htpasswd", "-b", "/path/to/htaccess", > > > $username, $password); > > > } Nice one, this did it - thank you all for contributions! Ha

AW: Apache: adding massive amount of users for .htaccess from text file

2004-02-20 Thread Erik Dörnbach
Hello Michael, > untested, quick and dirty Works as advertised, you saved my day! :) OTOH I should someday learn to hack these quickies myself... Alaaf, Erik -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]