Re: Trying to get File and Directory info off of external server quickly

2005-08-01 Thread Philip M. Gollucci
Boysenberry Payne wrote: my $h = $ftp->{handle}; foreach my $directory ( @directories ) { $h->cwd( $directory ) or die "can't change to directory: $directory $!"; my $dir_ls = $h->ls; foreach my $file_name ( @$dir_ls ) { unless ( substr( $file_name, 0, 1 ) eq "." ) {

Re: Trying to get File and Directory info off of external server quickly

2005-08-01 Thread Boysenberry Payne
$ftp->{handle} = Net::FTP->new( $ftp->{host}, Passive => 1 ) or die "Can't create new ftp with host: $ftp->{host}"; It's part of my FTP module Thanks, Boysenberry This message contains information that is confidential and proprietary to Humaniteque and / or its affiliates. It is intended only

Re: [Patch WIN32 apxs]

2005-08-01 Thread Randy Kobes
On Mon, 1 Aug 2005, William A. Rowe, Jr. wrote: Randy, thanks for all you efforts on this! Question before folks trip, was your 0.3 specific to httpd.exe and the apr-1 layout, or did you finish making this generic to both Apache 2.0 and 2.1-dev+? A warning on the website might be in order,

Re: Trying to get File and Directory info off of external server quickly

2005-08-01 Thread Randy Kobes
On Mon, 1 Aug 2005, Boysenberry Payne wrote: I'm not sure if HEAD would work. Basically, I'm trying to read a directory's files. After I confirm a file exists and doesn't have zero size I check that it has the appropriate extension for the directory then I add the directory address, file name an

Re: Trying to get File and Directory info off of external server quickly

2005-08-01 Thread Boysenberry Payne
I've already got it working using Net::FTP. The problem is it runs slow using FTP. Here is an example of what I'm trying to do: my $h = $ftp->{handle}; foreach my $directory ( @directories ) { $h->cwd( $directory ) or die "can't change to directory: $directory $!"; my $dir_ls = $h->l

Re: [Patch WIN32 apxs]

2005-08-01 Thread William A. Rowe, Jr.
Randy, thanks for all you efforts on this! Question before folks trip, was your 0.3 specific to httpd.exe and the apr-1 layout, or did you finish making this generic to both Apache 2.0 and 2.1-dev+? A warning on the website might be in order, if 0.3 applies right now only to httpd-2.1 Bill

Re: Trying to get File and Directory info off of external server quickly

2005-08-01 Thread Philip M. Gollucci
Boysenberry Payne wrote: I'm not sure if HEAD would work. Basically, I'm trying to read a directory's files. After I confirm a file exists and doesn't have zero size I check that it has the appropriate extension for the directory then I add the directory address, file name and extension to a tabl

Re: Trying to get File and Directory info off of external server quickly

2005-08-01 Thread Boysenberry Payne
I'm not sure if HEAD would work. Basically, I'm trying to read a directory's files. After I confirm a file exists and doesn't have zero size I check that it has the appropriate extension for the directory then I add the directory address, file name and extension to a table in our database. It use

Re: Trying to get File and Directory info off of external server quickly

2005-08-01 Thread Philip M. Gollucci
Boysenberry Payne wrote: The server system is hosted with a third party, so I was hoping I could use mod_perl as a solution without resorting to involving them in the solution if possible. If NFS ends up being the best solution I will ask them if they could set it up. Specifically what inform

Re: Trying to get File and Directory info off of external server quickly

2005-08-01 Thread Boysenberry Payne
The server system is hosted with a third party, so I was hoping I could use mod_perl as a solution without resorting to involving them in the solution if possible. If NFS ends up being the best solution I will ask them if they could set it up. Thanks, Boysenberry This message contains informa

Re: Trying to get File and Directory info off of external server quickly

2005-08-01 Thread Philippe M. Chiasson
Boysenberry Payne wrote: > Hello All, > > I've got a two server platform one a static server for files and > runs the mysql server > and the other runs mod_perl. I'm trying to figure out the fastest way > to get info on directories > and files from the static server to the mod_perl server. R

Re: Trying to get File and Directory info off of external server quickly

2005-08-01 Thread Philip M. Gollucci
Gedanken wrote: One quick caveat - properly unmount volumes when rebooting and such. Due to one of those things that somehow grew beyond its original intent, we had a network of about 15 machines all mounting each other. NFS chokes when a mount it expects to be there, isnt. it takes it sever

Re: Trying to get File and Directory info off of external server quickly

2005-08-01 Thread Gedanken
On Mon, 1 Aug 2005, Philip M. Gollucci wrote: There is a running joke in my office that, no matter what the problem is, I simply blame NFS before hearing any details. I am correct a surprising amount of the time =) One quick caveat - properly unmount volumes when rebooting and such. Due to o

Re: Trying to get File and Directory info off of external server quickly

2005-08-01 Thread Philip M. Gollucci
Boysenberry Payne wrote: Hello All, I've got a two server platform one a static server for files and runs the mysql server and the other runs mod_perl. I'm trying to figure out the fastest way to get info on directories and files from the static server to the mod_perl server. Right now I

Trying to get File and Directory info off of external server quickly

2005-08-01 Thread Boysenberry Payne
Hello All, I've got a two server platform one a static server for files and runs the mysql server and the other runs mod_perl. I'm trying to figure out the fastest way to get info on directories and files from the static server to the mod_perl server. Right now I'm using Net::FTP which is r

Re: Am I running mod perl 2?

2005-08-01 Thread Dominique Quatravaux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philip M. Gollucci wrote: > Okay, I at least understand what you are saying now. > > $ENV{MOD_PERL} > > will be in your environment even if you happen to be running a > REGULAR CGI from /cgi-bin on mod_cgi. Part of the problem indeed. There are other

[mp2] custom configuration not initialised via SERVER_CREATE

2005-08-01 Thread Richard Leopold
MOIn ! The documentation explains how to do "Apache Server Configuration Customization in Perl" and the SERVER_CREATE/DIR_CREATE mechanism to set defaults. But it only does work, if a customised directive would be be found in the configuration. Just calling Apache2::Module::add(__PACKA

Re: Am I running mod perl 2?

2005-08-01 Thread Joe Schaefer
Joe Schaefer <[EMAIL PROTECTED]> writes: > Dominique Quatravaux <[EMAIL PROTECTED]> writes: > >> I would like a robust way of checking the mod_perl version (or lack >> thereof) of the *currently running* Perl interpreter. I did kludge up >> one, but it is rear-end ugly (see code at the end of my p

Re: Am I running mod perl 2?

2005-08-01 Thread Joe Schaefer
Dominique Quatravaux <[EMAIL PROTECTED]> writes: > I would like a robust way of checking the mod_perl version (or lack > thereof) of the *currently running* Perl interpreter. I did kludge up > one, but it is rear-end ugly (see code at the end of my post in the > other thread). > > Support from mod

Re: Am I running mod perl 2?

2005-08-01 Thread Philip M. Gollucci
Dominique Quatravaux wrote: /usr/lib/apache2/modules/mod_perl.so. And $ENV{MOD_PERL} does not cut it either, for other reasons detailed in my previous post (wrong scoping). Okay, I at least understand what you are saying now. I think what you're getting at is that (other then ENV tampering) is

Re: Am I running mod perl 2?

2005-08-01 Thread Dominique Quatravaux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philip M. Gollucci wrote: > Okay So I read this thread. Thanks! >> $ perl -Mmod_perl2 -e 'print $mod_perl2::VERSION' 2.01 > > Why is that not trustworth ? Because we are obviously not *running* under mod_perl, but rather, from a command-line Pe

Re: Working directory: CGI vs. mod_perl

2005-08-01 Thread Philip M. Gollucci
Jan Eden schrieb: Hi, I just noticed that the working directory for scripts executed via a mod_perl handler is /. Is there a way to change that? Some of the scripts I use rely on the directory they are stored in is the current working directory. http://perl.apache.org/docs/2.0/user/porting/

Re: Am I running mod perl 2?

2005-08-01 Thread Philip M. Gollucci
Dominique Quatravaux wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Geoffrey Young wrote: if $ENV{MOD_PERL} is true you're running under mod_perl. Sorry to be rude about this, but no. This *needs* fixing. http://marc.theaimsgroup.com/?l=apache-modperl&m=112005579327997&w=2 Okay So

Re: Working directory: CGI vs. mod_perl

2005-08-01 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In Apache 1.3 this has been done by mp automatically when executing under PerlRun or Registry but because of the oulined problems this is not possible any more at least when supporting all mpms. If you are running on prefork and your cgi must be able

Re: Working directory: CGI vs. mod_perl

2005-08-01 Thread Jan Eden
Hi Tom, Tom Schindl wrote on 01.08.2005: >-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > >If you are running mp2 that's true simply because of the fact that >chdir in perl is not thread-safe :-( > >If you are running in prefork(which is only available on *nix) you >could chdir yourself at the to

Re: Working directory: CGI vs. mod_perl

2005-08-01 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If you are running mp2 that's true simply because of the fact that chdir in perl is not thread-safe :-( If you are running in prefork(which is only available on *nix) you could chdir yourself at the top of your handler. Tom Jan Eden schrieb: > Hi, >

Working directory: CGI vs. mod_perl

2005-08-01 Thread Jan Eden
Hi, I just noticed that the working directory for scripts executed via a mod_perl handler is /. Is there a way to change that? Some of the scripts I use rely on the directory they are stored in is the current working directory. Thanks, Jan -- Mac OS X. Because making Unix user-friendly is ea

Re: Am I running mod perl 2?

2005-08-01 Thread Dominique Quatravaux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Geoffrey Young wrote: > if $ENV{MOD_PERL} is true you're running under mod_perl. Sorry to be rude about this, but no. This *needs* fixing. http://marc.theaimsgroup.com/?l=apache-modperl&m=112005579327997&w=2 - -- Dominique QUATRAVAUX