stewartski has asked for the wisdom of the Perl Monks concerning the following question:
I suspect this is a trivial question, although I've not been able to find an answer so far.
Using Perl, I need to access some files that are on a different server to that of the script, although both are on our network. The files are in a password protected folder. (Don't worry, this is all legal, and eventually the bureaucracy here will tell me what that password is.)
My question is: using 'chdir' or 'opendir' how can I pass the password parameter. The only thing I can think of might be to use 'here doc' type syntax ie. <<. I have used this method in the past to pass a username and password for an ftp script.
Does anyone know if this is possible, or if there is a better method?
Many thanks
stewartski
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: accessing files in a password protected folder
by gellyfish (Monsignor) on Mar 02, 2005 at 11:20 UTC | |
|
Re: accessing files in a password protected folder
by dorward (Curate) on Mar 02, 2005 at 11:21 UTC | |
| |
|
Re: accessing files in a password protected folder
by jbrugger (Parson) on Mar 02, 2005 at 11:35 UTC | |
|
Re: accessing files in a password protected folder
by rupesh (Hermit) on Mar 02, 2005 at 11:38 UTC |