🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: misc.test
Article #5497

BuzzsearchSmbClientParser.pm

#5497
From: George O'Leary
Date: Mon, 28 Oct 2002 18:09
39 lines
2364 bytes
Is there a trick to setting up samba a a *nix box to get it to work with
buzzsearch?
This snippet of code gives me an error.  /usr/bin/smbclient does exist.
I haven't played with samba at all--do I need to create a samba user?

Thanks in advance.

George
#------------------------------------------------------------------------------

# new
#------------------------------------------------------------------------------

sub new
  {
    my $class = shift;
    my $self = {};
    bless $self, $class;
    if (!$_[0])
      {
        if (-x '/usr/bin/smbclient')
          {$self->{SMBLIENT} = '/usr/bin/smbclient';}
        elsif (-x '/usr/local/bin/smbclient')
          {$self->{SMBLIENT} = '/usr/local/bin/smbclient';}
        elsif (-x '/opt/bin/smbclient')
          {$self->{SMBLIENT} = '/opt/bin/smbclient';}
        else {goto 'ERROR';}
      }
    else
      {
        if (-x $_[0]) {$self->{SMBLIENT}=$_[0];}
        else {goto 'ERROR';}
      }
    $self->{DIR}='/';
    $self->{"DEBUG"} = 0;
    return $self;
    ERROR :
      die "Can't found smbclient.\nUse new('/path/of/smbclient')";
  }
Technical Details
Message-ID: <3DBD4051.237CB17D@nd.edu>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn11feed!worldnet.att.net!207.217.77.102!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 115a30,f35baed6503a9913,start
X-Google-Attributes: gid115a30,public
X-Google-Thread: 104c07,f35baed6503a9913,start
X-Google-Attributes: gid104c07,public
X-Google-ArrivalTime: 2002-10-28 10:10:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn11feed!worldnet.att.net!207.217.77.102!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail
Message-ID: <3DBD4051.237CB17D@nd.edu>
From: George O'Leary <george.oleary@nd.edu>
Organization: Notre Dame
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: misc.test,git.unix.linux
Subject: BuzzsearchSmbClientParser.pm
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 40
Date: Mon, 28 Oct 2002 18:09:11 GMT
NNTP-Posting-Host: 207.69.57.200
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread1.prod.itd.earthlink.net 1035828551 207.69.57.200 (Mon, 28 Oct 2002 10:09:11 PST)
NNTP-Posting-Date: Mon, 28 Oct 2002 10:09:11 PST