TCLUG Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG-DEVEL:253] how do I....?



Troy -

Wow this one is pretty deluxe!

The first one worked just fine with a little tweaking, this is what I
ended up doing:

>>>>>START>>>>>
#!/usr/bin/perl -w

$SOURCE = "file-name";
open SOURCE or die;

while (<SOURCE>)
{
        chomp;
        my($file, $name, $password) = split;
        #print "htpasswd -bc $file $name $password\n";
        system("htpasswd -bc $file $name $password");
}
<<<<<<END<<<<<<

and that worked like a charm! I have 3 sets of files that need to be
converted to htpasswd files. Now I just need to figure out a way to make
a bunch of .htaccess files... fun for me today!


Thanks a ton for your help!


~j