Link to home
Start Free TrialLog in
Avatar of TyBay
TyBay

asked on

Perl script to check for whether Remote files exist

How can I use perl to see whether or not a remote file exists or not?  
I need to check to see if a file is available on a unc path \\host\file1 and handle the exception if it is not accessible.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Adam314
Adam314

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What platform are you running this script on? Windows or Linux?
Avatar of TyBay
TyBay

ASKER

Windows
With Adam's pattern it does not seem to recognize that the file exists.  I can access via unc and then when using the provided pattern in Active State Perl on Windows I get a false negative every time.
Avatar of TyBay

ASKER

scratch that - syntax error on my part...