Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Filesys::Smbclient and DBD::XBase

by meredith (Friar)
on Mar 30, 2004 at 22:26 UTC ( [id://341116]=note: print w/replies, xml ) Need Help??


in reply to Filesys::Smbclient and DBD::XBase

The OP and I worked on this one on IRC... Our main problems were these:

  • $smbfilehandle isn't a "real" filehandle, it's a number that SmbClient uses to track its open files
  • XBase uses the value of the 'fh' parameter like an object, so we need an IO::Handle for this
  • Filesys::SmbClient doesn't provide a tied object like when using IO::Handle, so we must either use special read calls, or only builtins
  • It's possible to make a subclass for XBase that knows how to work with SmbClient, but that's quite a bit of work.
I think using mounted locations is the simplest solution, but in case any monk has an idea... it would be appreciated.



mhoward - at - hattmoward.org

Replies are listed 'Best First'.
Re: Re: Filesys::Smbclient and DBD::XBase
by lo_tech (Scribe) on Mar 30, 2004 at 23:27 UTC

    Had something like this pop up last week trying to read a remote file-based 'database'. We ended up going the most expedient route by just bringing over the files ( < 100k, total). SMB w/XBase we left for a time when we had time.

    I know it's not a solution to your problem, but it does work (if a tad on the inelegant side).

    Well, that's my $.02 worth. No, for refunds you'll have to check our customer service department.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://341116]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2024-04-23 14:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found