Filesys::SmbClient is a Perl module that provides an interface to access routine defined in libsmbclient.so provided with Samba.
Since 3.0 release of this package, you need a least samba-3.0.2. For prior release of Samba, use Filesys::SmbClient version 1.x.
For old and 2.x release, this library is available on Samba source, but is not build by default. Do "make bin/libsmbclient.so" in sources directory of Samba to build this libraries. Then copy source/include/libsmbclient.h to /usr/local/samba/include and source/bin/libsmbclient.so to /usr/local/samba/lib before install this module.
If you want to use filehandle with this module, you need Perl 5.6 or later.
When a path is used, his scheme is :
smb://server/share/rep/doc
SYNOPSIS
use POSIX;
use Filesys::SmbClient;
my $smb = new Filesys::SmbClient(username => "alian",
password => "speed",
workgroup => "alian",
debug => 10);
# Read a file
my $fd = $smb->open("smb://jupiter/doc/general.css", '0666');
while (defined(my $l= $smb->read($fd,50))) {print $l; }
$smb->close(fd);
# ...
Product's homepage
Requirements:
· Perl
What's New in This Release: [ read full changelog ]
· fix rt#12221: compile error on Debian Sarge
· fix rt#18757: compile error with Gentoo Linux/samba 3.0.21b
· fix rt#13173: read method doesn't return undef when file reading is over
· fix bug in configure.in that never build config.h