Re: CPAN -- why always so long?
# perl -MCPAN -eshell Cpan > o conf init This will allow you to configure CPAN, one of the steps is to select FTP sites. You can select based on geographical region and can also enter your own. I've never had a problem with speed and usually select multiple sites when configuring. ... Checking validity of my statements ... Actually appears that some of the hosts in my list are unreachable, taking some time to get a list of hosts... It tries LWP twice, presumably passive and non passive, then Net::FTP twice, then goes to the next host. Not a bad idea to update your sources once in a while I guess. C On 3/5/04 9:08 AM, "Joseph Alotta" <[EMAIL PROTECTED]> wrote: > It goes through all the ftp sites you have listed and tries to find > on that will allow logins. > > Does anyone know how to reset the list of ftp sites? Which ones are > most available? > > Joe. > > > On Mar 5, 2004, at 3:04 AM, John Delacour wrote: > >> I've been meaning to ask this question for months but never got round >> to it. >> >> Why is it that when I try to use cpan for the first time after a >> little while it takes an age for it to contact the sites and get >> going? I always have to go away and do something else and it might >> take 5 minutes for cpan to sart doing anything useful. >> >> Here's a typical transcript of what happens before the long wait: >> >> >> CPAN: Storable loaded ok >> Going to read /Users/jd/.cpan/Metadata >> Database was generated on Wed, 03 Mar 2004 05:50:41 GMT >> CPAN: LWP::UserAgent loaded ok >> Fetching with LWP: >> ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz >> LWP failed with code[400] message[FTP return code 000] >> Fetching with Net::FTP: >> ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz >> >> >> JD >> >
Re: Advice for moving perl script to OSX server
Greetings! First, thanks so much to everyone who replied with such helpful information to my question. Your suggestions will help many of the schools using OSX. However, I do have one school that sounds like it may be different. They are using OSX (version 10.2.8), but the only place they have entered usernames and passwords is in Macintosh Manager. I don't know much about Macintosh Manager. I assume it is not related to the Netinfo Manager database, but I really don't know. Is there a way for me to use the info in Macintosh Manager to authenticate teachers when they go to use the Homepage Kit web site? If there is not a direct way to authenticate, can the info be exported from Macintosh Manager in a format that htaccess (or something else) could then use to authenticate against? Again, thanks so much for all you help. It is greatly appreciated! Eric * Eric Curts * Technology Specialist, North Canton City Schools * [EMAIL PROTECTED] * (330) 497-5600 x377 * FAX (330) 497-5618 * * Give a man a fish and you feed him for a day; * teach him to use the Net and he won't bother you for weeks. - Original Message - From: "Eric Curts" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 01, 2004 12:41 PM Subject: Advice for moving perl script to OSX server > Greetings! > > I am the technology specialist for North Canton City Schools in North > Canton, Ohio. For years we have been using a perl script I wrote that helps > teachers to develop home pages. Recently we have begun sharing this script > with other school districts in our county so they could help their teachers > as well. However, two of the districts use OSX for their web server. Here > is where I need a push in the right direction... > > For us we run the script on a Linux server running Apache. Another district > we have helped runs it on a Windows 2000 server. So far so good. I am > wanting to give this script to the Mac districts but need help with the > issue of authentication. > > Since school districts have hundreds of employees, it is easier to tap into > an already existing password file, rather than have the staff create new > usernames and passwords to use the homepage script. On our Linux server I > use the built-in htaccess feature to handle the authentication. The > htaccess file protects the folder holding the script. When a teacher tries > to access the script, htaccess prompts them for a username and password. I > then have configured the htaccess file to look at the already existing > password file on the server (which is also used for their email accounts) > and it authenticates them. > > On the Windows 2000 server we did a similar thing. We used Windows built-in > ability to set privileges to protect the folder with the scripts. We then > used Windows built-in basic authentication to tap into Active Directory to > authenticate the teachers. > > What I am wondering is if there is some kind of built-in authentication for > OSX. If so, where can I get more information on it? Does it sound like I > will be able to use it as I have done with the other operating systems (that > is point it to some already existing username/password system)? > > If that does not work, I also understand that Apache can be set up on an OSX > server. Is this correct? Would that be a reasonable solution to the > authentication problem, since then I could use htaccess as before? > > Any advice would be greatly appreciated. I apologize if some of my comments > or questions are not clear as I have never worked with a Mac server before. > We are just trying to help out some neighboring schools. > > Thanks! > > Eric > > * Eric Curts > * Technology Specialist, North Canton City Schools > * [EMAIL PROTECTED] > * (330) 497-5600 x377 > * FAX (330) 497-5618 > * > * Give a man a fish and you feed him for a day; > * teach him to use the Net and he won't bother you for weeks.
Re: CPAN -- why always so long?
It goes through all the ftp sites you have listed and tries to find on that will allow logins. Does anyone know how to reset the list of ftp sites? Which ones are most available? Joe. On Mar 5, 2004, at 3:04 AM, John Delacour wrote: I've been meaning to ask this question for months but never got round to it. Why is it that when I try to use cpan for the first time after a little while it takes an age for it to contact the sites and get going? I always have to go away and do something else and it might take 5 minutes for cpan to sart doing anything useful. Here's a typical transcript of what happens before the long wait: CPAN: Storable loaded ok Going to read /Users/jd/.cpan/Metadata Database was generated on Wed, 03 Mar 2004 05:50:41 GMT CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz LWP failed with code[400] message[FTP return code 000] Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz JD
Re: CPAN -- why always so long?
On Mar 5, 2004, at 4:04 AM, John Delacour wrote: Why is it that when I try to use cpan for the first time after a little while it takes an age for it to contact the sites and get going? I always have to go away and do something else and it might take 5 minutes for cpan to sart doing anything useful. Two things come to mind - neither is authoritative, so adjust sodium levels accordingly. The first is, cpan.org is a nonprofit on a limited budget, and ftp.cpan.org is not the fastest server on the planet. It gets hit *hard*. The second is, I *think* that it tries a non-passive FTP transfer first. If you're behind a firewall - which many of us are these days, with shared broadband connections - that transfer will time out, and then it retries the transfer in passive mode. I think it uses the results of this initial test to establish the default passive setting in Config.pm. sherm--
CPAN -- why always so long?
I've been meaning to ask this question for months but never got round to it. Why is it that when I try to use cpan for the first time after a little while it takes an age for it to contact the sites and get going? I always have to go away and do something else and it might take 5 minutes for cpan to sart doing anything useful. Here's a typical transcript of what happens before the long wait: CPAN: Storable loaded ok Going to read /Users/jd/.cpan/Metadata Database was generated on Wed, 03 Mar 2004 05:50:41 GMT CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz LWP failed with code[400] message[FTP return code 000] Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz JD
macosx@perl.org
At 6:25 pm -0500 4/3/04, Sherm Pendley wrote: On Mar 4, 2004, at 4:17 PM, John Delacour wrote: the SendMail.pm I do use, and which I presumed was the commonly used one, is that from It's not on CPAN, and not mentioned in any of the faqs or docs I'm aware of. I think it'd be a bit of a stretch to assume it's in widespread use. Yes. I don't know why I got hold of that one -- I think I must have been looking for a solution to a perticular problem and this fitted the bill perfectly at the time. I must have a look at the more well-known option. JD