Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The FTP portion makes use of Net::FTP, and parses a text file for arguments (2 ftp sites), using the format:
ftp://username:password@hostname//
However, in my case, one of my usernames contains a / (beyond my control), and I can't seem to "escape" it - eg, my username is XX/yyyy, the script bombs out with "Net::FTP: hostname XX invalid" or similar. I've tried changing the username field in the text file to be XX//yyyy, which has the same effect as above, and XX\/yyyy which bombs out with "hostname XX\ invalid".
I'm not sure what Net::FTP is looking for to let me do this; I also couldn't find anything relating to whether or not a / will EVER be parsed correctly as a username by Net::FTP even if passed as an argument and not in the main ftp syntax line.
Also, if anyone knows of any other script/tool already available (pref. free), I'd like to hear about it - this was the only one I could find (searched freshmeat, google).
Thanks,
Glenn
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::FTP - syntax with username containing /
by kodo (Hermit) on Jul 04, 2002 at 13:49 UTC | |
by Abigail-II (Bishop) on Jul 04, 2002 at 14:24 UTC | |
by Anonymous Monk on Jul 04, 2002 at 21:29 UTC | |
by Anonymous Monk on Jul 04, 2002 at 21:37 UTC | |
by Anonymous Monk on Jul 04, 2002 at 17:50 UTC |