SPUG: scanning directories

Daniel Jacobs danielj at cheshirecat.net
Thu Nov 30 00:16:03 CST 2000


Do you possibly need to escape the '/' characters? i.e.

$portal{BASEDIR} = "\/\/machinename\/sharedirectory";   

On Thu, 30 Nov 2000, Menardo, Dax wrote:

> first of all its a Windows environment - booooo, i hear some say.....
> 
> How do I scan through an unmapped share directory name on a server on the
> network domain? or even open one.....
> 
> Lets say:
> 
> $portal{BASEDIR} = "//machinename/sharedirectory";
> opendir(ETC,$portal{BASEDIR}) || die "\nCannot opendir ".$portal{BASEDIR}."
> \n$!";
> 
> eventhough the share permission is set to be read/write/execute for
> everyone.... the interpreter chucks out an error "cannot open the directory
> <blah, blah>".....
> 
> Any Ideas....
> 
> 
> 
Daniel Jacobs | danielj at cheshirecat.net | Internet & Unix Consulting
         "In art and dream, may you proceed with abandon.
 In life, may you proceed with balance and stealth." - Patti Smith



 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/





More information about the spug-list mailing list