Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    Filesys::SmbClientParser 2.7

    Download button

    No screenshots available
    Downloads: 359  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Alain BARBET | More programs
    Perl Artistic License / FREE
    April 25th, 2007, 23:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Filesys::SmbClientParser description

    Filesys::SmbClientParser is a Perl client to reach Samba ressources with smbclient.

    Filesys::SmbClientParser is a Perl client to reach Samba ressources with smbclient.

    SYNOPSIS

    use Filesys::SmbClientParser;
    my $smb = new Filesys::SmbClientParser
    (undef,
    (
    user => 'Administrateur',
    password => 'password'
    ));
    # Or like -A parameters:
    $smb->Auth("/home/alian/.smbpasswd");

    # Set host
    $smb->Host('jupiter');

    # List host available on this network machine
    my @l = $smb->GetHosts;
    foreach (@l) {print $_->{name},"t",$_->{comment},"n";}

    # List share disk available
    my @l = $smb->GetShr;
    foreach (@l) {print $_->{name},"n";}

    # Choose a shared disk
    $smb->Share('games2');

    # List content
    my @l = $smb->dir;
    foreach (@l) {print $_->{name},"n";}

    # Send a Winpopup message
    $smb->sendWinpopupMessage('jupiter',"Hello world !");

    # File manipulation
    $smb->cd('jdk1.1.8');
    $smb->get("COPYRIGHT");
    $smb->mkdir('tata');
    $smb->cd('tata');
    $smb->put("COPYRIGHT");
    $smb->del("COPYRIGHT");
    $smb->cd('..');
    $smb->rmdir('tata');

    # Archive method
    $smb->tar('c','/tmp/jdk.tar');
    $smb->cd('..');
    $smb->mkdir('tatz');
    $smb->cd('tatz');
    $smb->tar('x','/tmp/jdk.tar');
    See test.pl file for others examples.

    SmbClientParser work with output of bin smbclient, so it doesn't work on win platform. (but query of win platform work of course)

    A best method is work with a samba shared librarie and xs language, but on Nov.2000 (Samba version prior to 2.0.8) there is no public interface and shared library defined in Samba projet.

    Request has been submit and accepted on Samba-technical mailing list, so I've build another module called Filesys-SmbClient that use features of this library. (libsmbclient.so)

    For Samba client prior to 2.0.8, use this module !

    SmbClientParser is adapted from SMB.pm make by Remco van Mook mook@cs.utwente.nl on smb2www project.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    reach Samba | Samba ressources | Perl module | Filesys::SmbClientPa | reach | Samba

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM