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 "." ) {
$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
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,
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
-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
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/
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
-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
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
-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,
>
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
-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
28 matches
Mail list logo