A
ARod
Is there a way to use readdir to get the directory structure of a
remote server? If not, is there another function that can do this?
remote server? If not, is there another function that can do this?
Abigail said:ARod ([email protected]) wrote on MMMDCXIX September MCMXCIII in
<URL:** Is there a way to use readdir to get the directory structure of a
** remote server? If not, is there another function that can do this?
Yes. You first have to mount the directory you want to read though.
NFS and Samba are two protocols that are used often.
On Unix, you would do something like:
$ mount -t nfs remote.server.tla:/path/to/dir /mnt
Of course, if you want to do this often, or transparantly, you could
use the automounter.
Abigail
Is there a way to use readdir to get the directory structure of a
remote server? If not, is there another function that can do this?
Garry, I'm using Windows NT but your suggestion is not working.
Here's a snippet of the code:
$remote = "\\\\server\\some_share";
opendir(DIRECTORY,$remote);
@dirs=readdir(DIRECTORY) or die "can't read $remote";
closedir(DIRECTORY);
The readdir fails...What am I doing wrong?
ARod said:Garry, I'm using Windows NT but your suggestion is not working.
Here's a snippet of the code:
$remote = "\\\\server\\some_share";
opendir(DIRECTORY,$remote);
@dirs=readdir(DIRECTORY) or die "can't read $remote";
closedir(DIRECTORY);
The readdir fails...What am I doing wrong?
remote server? If not, is there another function that can do this?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.