Have an IIS virtual directory and a WSFTP “impersonation” defined to get me into a folder, but I need to drill into sub folders to pick up a file. I’m trying to do that in one Curl command, but it fails. I’m now trying to simply get the FTP to work from the AIX command line and it can’t traverse the directories, but it won’t.
Here’s what happens:
This doesn’t work in one command:
ftp> recv /MedhostPDFTest/2013/7/12/00001_2013_07_16_000000012_006_000_000.pdf
/MedhostPDFTest/2013/7/12/00001_2013_07_16_000000012_006_000_000.pdf: A file or
directory in the path name does not exist.
But if I switch to the subdirectory this will work:
ftp> cd /MedhostPDFTest/2013/7/12/
250 CWD command successful.
ftp> recv 00001_2013_07_16_000000012_006_000_000.pdf
200 PORT command successful.
150 Opening ASCII mode data connection for 00001_2013_07_16_000000012_006_000_00
0.pdf(59272 bytes).
226 Transfer complete.
The odd thing is that the first full request works under windows, but not under AIX….
I’ve embedded a curl request in a TCP/IP thread script to try to get this file, so I’m hoping to do this in one statement and not have to navigate teh directory structure:
curl::transfer -url ftp://${ip}/MedhostPDFTest/${dir1}/${dir2}/${dir3}/${file} -userpwd ${user}:${pwd} -file ${outfile}
Why doesn’t AIX work like windows in drilling down the directory path?