I have written a script that is able to authenticate into a server and from there searches a directory and parses files in the directory. The current method I'm using to authenticate into the servers is:
qx|net use \\\\$server\\C\$\\VoiceGenie\\mp\\log $ServerPassword /use +r:$username|; find( \&finddata, "\\\\$server\\c\$\\VoiceGenie\\mp\\logs\ +\" ) or warn "Could not enter the specified path \\\\$server\\ +c\$\\VoiceGenie\\mp\\logs\\.\n"; #Function that allows the use of Fil +e::Find. qx|net use \\\\$server\\C\$\\VoiceGenie\\mp\\log /D|;
However, I feel that this may not be the best method by which to do so. For one when doing this I always recieve System error 55. This error has meant nothing to me, but the fact that it occurs is some what troubling. Also sometimes if the script is run multiple times in a row it will fail to connect to the server. Giving me an error that states "Could not enter the specified path ...path name here...The network connection could not be found. I am wondering if there is a better way by which I can connect to these servers. They are windows servers, and it is not possible for me to map all the servers to my machine because this code will be used by many people and is set to search close to 20 servers. Thank you for any help in advance.

In reply to Server authentication by brayk1990

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.