1830207 Members
1996 Online
109999 Solutions
New Discussion

ftp error

 
SEA RC
Occasional Contributor

ftp error

Hi

I am having errors when i tried to do an ftp of a file in a multi-directory home a/c.

But when I did a cd to each & everyone of the sub-directories, I am able to get the file.

Is there any known issue of ftp when doing a multi-directory ftp.

Eg:
ftp> get /FTPOutgoing/Adi/adi/to_adi/edcd/AD1981/116181.1_80286569.1_ENGG_YLD_ANALYSIS_25C_NULL_NULL/sample_datalog_only.txt
/FTPOutgoing/Adi/adi/to_adi/edcd/AD1981/116181.1_80286569.1_ENGG_YLD_ANALYSIS_25C_NULL_NULL/sample_datalog_only.txt: No such file or directory

When doing a cd'ing to each & every directories bedfore doing a get.
ftp> pwd
257 "/FTPOutgoing/Adi/adi" is current directory.
ftp> cd /FTPOutgoing/Adi/adi/to_adi/edcd/AD1981/116181.1_80286569.1_ENGG_YLD_ANALYSIS_25C_NULL_NULL
ftp> get sample_datalog_only.txt
200 PORT command successful.
150 Opening ASCII mode data connection for sample_datalog_only.txt (1144 bytes).
226 Transfer complete.
local: sample_datalog_only.txt remote: sample_datalog_only.txt
1200 bytes received in 0.012 seconds (98.82 Kbytes/s)

Thanks
2 REPLIES 2
Tom Geudens
Honored Contributor

Re: ftp error

Hi,
Either your output got mangled or I'm not quite sure what you are asking exactly.

If you want to get 1 file it should work
like this
cd /local_directory
ftp>get /remote_directory/filename

Using a local filename is not mandatory, but if you don't use it, you should "cd" to the remote directory first. Otherwise you might get problems with the directory structure.

If you want to get multiple files it should work like this
cd /local_directory
ftp>mget /remote_directory/filename1 /remote_directory/filename2 ...

Does this solve your problem ?
Tom Geudens
A life ? Cool ! Where can I download one of those from ?
Deepak Extross
Honored Contributor

Re: ftp error

Have you allowed read and execute permissions for all on the entire directory tree? Do a "chmod 755 /FTPOutgoing/Adi/adi/to_adi/edcd " and see if it helps.