File-Find and Samba share

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


my $wdir = '//CompName/EBooks/CHM/perl/';
find( {wanted => \&CheckCHM}, $wdir );

In WinNT 5, the above code works. The UNC path is
seemless. However in SuSE 9.2 Linux, the find() call
returns a
        Can't stat //CompName/EBooks/CHM/perl: No such file or directory
 at /windows/h/temp/earl/scripts/ line 129

I also tried
my $wdir = 'smb://CompName/EBooks/CHM/perl/';

The EBooks folder is correctly shared via Samba.
I must use this method to name the folder.

thanks in advance,

Re: File-Find and Samba share

On 2005-06-16, tlviewer scribbled these
curious markings:
Quoted text here. Click to load it

The error message is your guide. It's telling you that it can't stat
that file or directory. Is that the path you'd use to access the
filesystem using command-line tools like ls? On its own, Perl doesn't
know anything about Samba.

Quoted text here. Click to load it

You're welcome. Contrary to what one particular poster believes, saying
"TIA" is not rude or anything silly like that.

Best Regards,
Christopher Nehren
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated". -- Ken Thompson
If you ask the wrong people questions, you get "Joel on Software".
Unix is user friendly. However, it isn't idiot friendly.

[OT] Re: File-Find and Samba share

Quoted text here. Click to load it

Well, there is at least one other person on this planet who agrees with me


(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:

Site Timeline