Brethen

A new day, a new distraction...

We have a new single most important to do on our list. We have to compare a list of billing files that someone posts as a cvs file on a Windoze server with the actual directory listing on our SMS machine (VMS) and report on discrepencies. (Ignorable RANT: this whole thing is crap. Without scripting, she's adding .5 to 1 hours works to someones day (the early person, which rotates) and she has nothing to do with billling reconciliation, but she CC'd the CIO and the billing VP and now its law *grumble* *growl*)

So... to get back to the subject... I created a nifty little PERL script on a UNIX box that reads and parses the CSV file and uses FTP to get a dir listing, compares the two and spits out whats in both or one or the other.

This works reasonably well, but the user currently needs to ftp the files over to the UNIX box. Can anyone give me an example of using PERL to establish an SMB connection from a Solaris 8 machine (though it could just as easily be FreeBSD) and an XP server to retrieve files? The XP box is not ours, we normally only have access to it through mounts on our laptops. I called IS and they recommended SMB, but didn't offer any advice on how to do it. I've done googled a bit on this and have only been able to find articles on using samba to share printers and file systems to the PC.

Thanks!

Jimbus

A bored Jimbus not longer communicates, "Never moon a werewolf!"

2005-08-22 Retitled by Arunbear, as per Monastery guidelines
Original title: 'SMB'


In reply to Accessing files on a Windows server from *NIX via SMB by jimbus

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.