ftp drive
I want to write a script to ftp to windows ( the script will run on linux ) to get data , can advise if the default drive is c: , now I want to change to another drive eg. d: , what can i do ?
Thanks. |
Quote:
|
What FTP server is running on Windows?
Do you have the other drives added to the FTP server so it will actually let you cd into them? |
Quote:
The requirement is simple , when I login to the windows ftp server , the initial path is c:\Document and setting\.... , now I want to change to another directory eg. d drive , what can I do ? I have tried d:\ or cd d:\tmp , all is not work . Thanks. |
Quote:
Quote:
You don't mention if you're using expect or not, how you're getting/putting files, or what you're trying to accomplish. |
I could be wrong on this but a ftp server would provide access to some folder in windows. You may be allowed to traverse up a bit but usually you can't change drives. Set the ftp on windows to provide default folder on D:\ somewhere instead.
|
Quote:
|
You still haven't indicated which ftp server you're using in Windows. Because that is where you must set it up before it even can work. See also post #3 by dudeman41465
I did a quick check on filezilla: http://wiki.filezilla-project.org/FA...lla_Server_FAQ ; search for drive and it explains it. Note: To my knowledge, the ftp protocol does not know about drives, only folders. |
indeed, as far as i know an ftp server works in the same manner as a web server, you provide it with a folder to use a 'document root' and ftp clients can't usually get any higher up the tree then that and drive letters are irrelevant to ftp clients.
|
i think the limitation on windows is that the d:\ root isnt on the same directory tree as c:\ .
so i think it will be impossible to change drives (unless windows has some hack where you can mount the d:\ drive under c:\ or some clever symlinks/ shortcuts). or you can chroot jail the host's ftp server to look at d:\ instead. opinion: this is probably why most servers tend to run on linux/ unix because you can have multiple drives mounted in one directory tree (might i also suggest scp since ftp is horribly deprecated and insecure). |
All times are GMT -5. The time now is 01:16 PM. |