mukkollu has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to write code on Windows server A to read files from Windows server B. Here is the code piece.
$logdir = "\\\\Server\\e\$\\log"; opendir($fd, $logdir) or die "Cannot open directory: $!"; @AllFiles = readdir($fd); print "$_\n" for @AllFiles;
This code neither throws error nor prints files. Files do exist in the log folder. I was able to view the files from windows explorer and command prompt from server A.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cannot read files from folder on another windows server
by BrowserUk (Patriarch) on Sep 16, 2011 at 10:18 UTC | |
by mukkollu (Initiate) on Sep 16, 2011 at 13:23 UTC | |
by mukkollu (Initiate) on Sep 16, 2011 at 13:24 UTC | |
by Anonymous Monk on Sep 16, 2011 at 14:12 UTC | |
|
Re: Cannot read files from folder on another windows server
by Anonymous Monk on Sep 16, 2011 at 09:05 UTC | |
by mukkollu (Initiate) on Sep 16, 2011 at 13:19 UTC | |
|
Re: Cannot read files from folder on another windows server
by Anonymous Monk on Sep 16, 2011 at 01:56 UTC | |
by ikegami (Patriarch) on Sep 16, 2011 at 05:39 UTC |