Re: File::Find problem on windows+apache+activePerl
- From: "A. Sinan Unur" <1usa@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 27 Feb 2006 22:07:57 GMT
"Koolrans" <koolrans@xxxxxxxxx> wrote in
news:1141074727.590395.210460@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
Thanks for the reply. I did try the FAQ.
Who are you thanking? What reply? What FAQ?
My bad. Being my first time, I used reply instead of options->reply.
So the reply only made it to the author.
Please do not snip attributions. Please trim the post appropriately.
Are you checking all your file I/O operations for errors? Are you
dying on errors? Are you including the operating system's last error
variable ($!) in those die messages?
It's time for you to show some code.
That would have been an excellent thing to do the first time you posted.
Here is how I use the function.
use strict;
use warnings;
missing.
@src_dir = "\\\\testnetwork\\filesToBeUploaded\\linux"
use File::Spec::Functions qw( catfile );
my $src_dir = catfile qw( \\\\Aardvark filestobeuploaded linux );
print "@src_dir";
It is an error to output anything in a CGI script before headers are sent.
find(\&processFiles, "@src_dir")
find(\&processFiles, $src_dir)
[Mon Feb 27 13:06:02 2006] [error] [client 10.2.20.109] Can't stat
\\\\testnetwork\\filesToBeUploaded\\linux: No such file or directory,
That's weird when I run your code, the error I get is:
D:\Home\asu1\UseNet\clpmisc> r
Can't stat \\testnetwork\filesToBeUploaded\linux: ...
How can there be four slashes above? There must be some relevant code you
are not showing us.
Please come up with a short and complete script others can run.
Now, to be able to run the following script on my local network, I had to
not only create the appropriate share, but also poke a hole through the
Symantec Firewall. So, it looks like your issue does not have much to do
with Perl, but with the configuration of your OS, web server, firewall
etc.
#!/usr/bin/perl
use warnings;
use strict;
use File::Find;
use File::Spec::Functions qw( catfile );
my $src = catfile qw(\\\\Aardvark vim);
find(\&process_files, $src);
sub process_files {
print;
}
__END__
Paul Lalli wrote:
Koolrans wrote:
The posting guidelines explain how to use an effective quoting style.
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
.
- Follow-Ups:
- Re: File::Find problem on windows+apache+activePerl
- From: Koolrans
- Re: File::Find problem on windows+apache+activePerl
- References:
- File::Find problem on windows+apache+activePerl
- From: Koolrans
- Re: File::Find problem on windows+apache+activePerl
- From: Jürgen Exner
- Re: File::Find problem on windows+apache+activePerl
- From: Koolrans
- Re: File::Find problem on windows+apache+activePerl
- From: Paul Lalli
- Re: File::Find problem on windows+apache+activePerl
- From: Koolrans
- File::Find problem on windows+apache+activePerl
- Prev by Date: Re: Convert a string into array of characters
- Next by Date: Re: Convert a string into array of characters
- Previous by thread: Re: File::Find problem on windows+apache+activePerl
- Next by thread: Re: File::Find problem on windows+apache+activePerl
- Index(es):
Relevant Pages
|
|