I'm struggling trying to get a LINUX created BerkleyDB file opened and used in the Windows environment.

I got the DB_File perl module installed using PPM on the Windows 2000 machine. That worked great. Now without any DB file in the directory when I run my program, it creates the "filename.db" file and manipulates it just fine. But when I copy my original "filename.db" file into it's place ... the one that was actually created on a Linux machine, it tells me it cannot open the file.

I've FTP'd the DB file using both BINARY and ASCII, and both give me the same error.

I've messed with the file permissions on the DB file on the Windows machine and the file that it is giving me an error on has the exact same permissions as the file that the perl script created & modified successfully, so it cannot be a permission problem.

Is there a potential disconnect with the LINUX created file and the windows perl DB_File module? Can the Windows Perl module DB_File open and modify a file that was created on a Linux machine?

Thanks for any help you can give!
Kurt (kleucht)


In reply to DB_FILE from LINUX to Windows by kleucht

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.