Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

file share

by Anonymous Monk
on Sep 28, 2012 at 05:41 UTC ( [id://996111]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I am connecting a windows system to a windows file share with help of net use to scan the file contents in share. The problem is that when the connection is lost than my system captures in its cache the file share and tries to scan it, but fails as it cannot read these files when connection is lost

Is there any module which can help in checking that the system is connected to the file share such that it breaks execution on losing connection? I want to exit execution as soon as connection is lost. I tried Win32::Lanman but could not figure out its use. Please help..

Replies are listed 'Best First'.
Re: file share
by BrowserUk (Patriarch) on Sep 28, 2012 at 14:27 UTC
    but fails as it cannot read these files when connection is lost

    How do you know when it has failed?


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    RIP Neil Armstrong

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://996111]
Approved by davies
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-19 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found