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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What platform are you running this script on? Windows or Linux?
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.
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.
ASKER
scratch that - syntax error on my part...