Download via command line - file not found error

Report client bugs
Post Reply
tasturner
Posts: 3
Joined: Fri Apr 28, 2006 5:16 pm

Download via command line - file not found error

Post by tasturner »

I am having a problem with downloading a file via the command line... :(

Here is my command line:
"c:\program files\coreftp\coreftp.exe" -site State_Comp_Fund -d ftp://user:password@198.51.170.77:5022/out/Bingo.txt -O -log "d:\divisions\ders\esa\prd\bbgscf.txt" -p "d:\divisions\ders\esa\prd\"

In the log, I find the following messages:

Started on Friday April 28, 2006 at 10:06:AMLooking up host "198.51.170.77"Connecting to 198.51.170.77 port 5022Server version: SSH-2.0-VShell_2_2_4_581 VShellversion: SSH-2.0-SSH-Local: Jan 10 2006 12:22:15Using SSH protocol version 2processing group exchangeprocessing key exchangeHost key fingerprint is:ssh-dss 1024 13:3f:71:ea:ce:da:24:21:72:9c:e5:a5:2d:b3:35:8bInitialized AES-256 client->server encryptionInitialized AES-256 server->client encryptionSent passwordAccess grantedOpened channel for sessionStarted shell sessionPWD

Current directory is 'DES:/'

CWD DES:/out/

Transferred 140 bytes in 0.593 seconds

CWD /out/

Transferred 140 bytes in 0.438 seconds

Bingo.txt - File not found...

Total uploaded files: 0

Total uploaded data: 0

Total downloaded files: 0

Total downloaded data: 0

Yet, when I check the /out/ folder on the FTP server via the interface, I find that the file is there. :?

Here is the version info: Version 1.3c, build 1446, LE version

Am I doing something wrong? Thanks!

Todd Sturner
tsturner@azdes.gov
tasturner
Posts: 3
Joined: Fri Apr 28, 2006 5:16 pm

Post by tasturner »

CP wrote:Try:

c:\program files\coreftp\coreftp.exe" -site State_Comp_Fund -d /out/Bingo.txt -O -log "d:\divisions\ders\esa\prd\bbgscf.txt" -p "d:\divisions\ders\esa\prd"
OK - I made the change:

"c:\program files\coreftp\coreftp.exe" -site State_Comp_Fund -d /OUT/Bingo.txt -O -log "d:\divisions\ders\esa\prd\bbgscf.txt" -p "d:\divisions\ders\esa\prd"

- still no luck.
CP wrote: If you log in with the site profile "state_comp_fund", does the file Bingo.txt exist in the /out/ directory? (Also remember case sensitivity).
I've verified that the file exists; however, your comment about case sensitivity is interesting. I've run 2 tests with the file and the folder cased correctly...here are the results:

Started on Friday April 28, 2006 at 11:27:AMLooking up host "198.51.170.77"Connecting to 198.51.170.77 port 5022Server version: SSH-2.0-VShell_2_2_4_581 VShellversion: SSH-2.0-SSH-Local: Jan 10 2006 12:22:15Using SSH protocol version 2processing group exchangeprocessing key exchangeHost key fingerprint is:ssh-dss 1024 13:3f:71:ea:ce:da:24:21:72:9c:e5:a5:2d:b3:35:8bInitialized AES-256 client->server encryptionInitialized AES-256 server->client encryptionSent passwordAccess grantedOpened channel for sessionStarted shell sessionPWD

Current directory is 'DES:/'

CWD DES:/out/

Transferred 140 bytes in 0.438 seconds

CWD /out/

Transferred 140 bytes in 0.453 seconds

Bingo.txt - File not found...

Total uploaded files: 0

Total uploaded data: 0

Total downloaded files: 0

Total downloaded data: 0

Started on Friday April 28, 2006 at 11:30:AMLooking up host "198.51.170.77"Connecting to 198.51.170.77 port 5022Server version: SSH-2.0-VShell_2_2_4_581 VShellversion: SSH-2.0-SSH-Local: Jan 10 2006 12:22:15Using SSH protocol version 2processing group exchangeprocessing key exchangeHost key fingerprint is:ssh-dss 1024 13:3f:71:ea:ce:da:24:21:72:9c:e5:a5:2d:b3:35:8bInitialized AES-256 client->server encryptionInitialized AES-256 server->client encryptionSent passwordAccess grantedOpened channel for sessionStarted shell sessionPWD

Current directory is 'DES:/'

CWD DES:/OUT/

Transferred 140 bytes in 0.437 seconds

CWD /OUT/

Transferred 140 bytes in 0.531 seconds

Bingo.txt - File not found...

Total uploaded files: 0

Total uploaded data: 0

Total downloaded files: 0

Total downloaded data: 0


I'd like to think it has something to do with "Current directory is 'DES:/'", but I'm not sure...any other ideas?

Thanks!

Todd Sturner
tsturner@azdes.gov
tasturner
Posts: 3
Joined: Fri Apr 28, 2006 5:16 pm

Post by tasturner »

CP wrote:Go into Core FTP, connect to your site.

Then either navigate to /out/ or type in /out/ into the directory dropdown.

If the file shows up in this directory, it should be the same as the command line log.

If the file is *not* there, then we can assume that /out/ is the wrong directory to use.
Done. The file does show up...
CP wrote:Right click on the remote directory, select 'directory commands' -> 'directory info' and post that information here. It might tell more about what's actually in there.

You can also repeat the process for /OUT/ if the server is running on a Unix box. If it's running on Windows, then it shouldn't matter.
Here's the directory info:

0 Apr 28, 2006 09:50 ./
0 Apr 28, 2006 09:50 ../
54 Mar 16, 2006 14:09 Bingo.txt
1392 Apr 21, 2006 14:40 SFCTESTOUT.TXT

Thanks for all your help...I appreciate it!

Todd
Post Reply