chennaiite,

open cannot authenticate to the server for you.

1. Make the changes roger has mentioned (i guess you have done that already)

2. Now go to start->RUN and then type \\IP_ADDRESS (corresponding to your server)

3. It will ask you to authenticate, type login and password

4. Now try you perl script again

I tried to access the files from one of my computers on my network and i get Invalid argument at -e line 1.

Ignore the -e part as i was using command line perl. After I authenticated with the machine like the way i just explained i was able to access the file

Hope this helps. I am not sure how windows's fileserver works with authentication and hence don't know ways to automate it.

On the other hand you can also map your network server to a drive and try to see if that works better for you?

update: if you don't know what path to use, just start->run type the ip_address\ and then browse to the directories. In windows explorer if you have turned on "address" bar then you can copy that into your open call. Just make sure you escpate \ with \\

cheers

SK


In reply to Re^3: Cannot acces a remote file by sk
in thread Cannot acces a remote file by chennaiite

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.