|
Hi All,
I need to create a perl script to open network shared folder (//server/folder) then I need to count its files.
I used :
--------------------------
opendir(ETC,"//lion/tmp") || die "Error ?: $!";
while ($name = readdir(ETC)) {
print "$name\n";
}
closedir(ETC);
--------------------------
and it worked fine.
But the problem is when the server require a username and password to grant the access.
- How can I pass the username and the password to the server to open the folder ?
- Is there any other way to do that (instead of the previous method)?
Note: the perl script will be run under windows platform and the server maybe Windows or Linux(samba).
Thanks.
- Ammar
|
|
|
|
|
|
|
|