sanju7:

You may want to re-read the documentation for File::Find's wanted function. You're using the $_ variable, which doesn't contain the full path name to the file(s) of interest (unless you've set the no_chdir option). So at the very least, you need to set the no_chdir flag or your subroutines would need to change.

Other things I can think of to check:

Is the script running under your user account, or some other account? If it's another account, perhaps that account doesn't have access to the share(s) on the other boxes.

To test your question about whether the script understands a remote path: Check it without the rest of your program, so you can clearly determine whether or not it understands the remote path, something like:

perl -e 'print "exists" if -e "//hostname/share-test"'

...roboticus


In reply to Re^5: Remove Script for a Infrastructure file managenet system running embedded perl by roboticus
in thread Remove Script for a Infrastructure file managenet system running embedded perl by sanju7

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.