Scripting ssh transfers downloads 0 bytes

Report client bugs
Locked
vfedorov
Posts: 15
Joined: Tue Jul 05, 2011 9:32 pm

Scripting ssh transfers downloads 0 bytes

Post by vfedorov »

Hi
I am trying to script SSH ttransfers using Coreftp Lite.

corecmd.exe -ssh sftp://ftpuser:ftppwd@ftphost/folder/*. -p %mypath%\Inbound\

the client finds the file but downloads 0 bytes.
the same thing happens with and without -s

Any help will be appreciated.

Vladimir Fedorov
ForumAdmin
Site Admin
Posts: 987
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

add the -log <logfile> option and post the log here if possible.
vfedorov
Posts: 15
Joined: Tue Jul 05, 2011 9:32 pm

RE: Scripting ssh transfers downloads 0 bytes

Post by vfedorov »

Here is the log. I sanitized it for userid and hosts
thank you,vladimir Fedorov


Resolving sftp.XXXXXXXX.com...

sftp.XXXXXXXX.com [22] connecting...

SSH-2.0-GXSSSHD_Comments

client -> aes128

server -> aes128

XX:XX:XX:XX

ssh-rsa

Sending password

PWD

Current directory is '/User'

CWD /User

CWD /User/

CWD /User/

RETR /User/%SENDER:01%RECEIVER:01%SFTP%ACCEPTED%39fea1006emtgnlk000g2d6d

%SENDER_01%RECEIVER_01%SFTP%ACCEPTED%39fea1006emtgnlk000g2d6d - 0 bytes transferred

RETR /User/%SENDER:01%RECEIVER:01%SFTP%ACCEPTED%39fedh006emt7fbu000g97ie

%SENDER_01%RECEIVER_01%SFTP%ACCEPTED%39fedh006emt7fbu000g97ie - 0 bytes transferred

RETR /User/%SENDER:01%RECEIVER:01%SFTP%ACCEPTED%39fedh006eiad8v10007t5d5

%SENDER_01%RECEIVER_01%SFTP%ACCEPTED%39fedh006eiad8v10007t5d5 - 0 bytes transferred

RETR /User/%SENDER:01%RECEIVER:01%SFTP%ACCEPTED%39fea1006e7f4712000m8vmc

%SENDER_01%RECEIVER_01%SFTP%ACCEPTED%39fea1006e7f4712000m8vmc - 0 bytes transferred

RETR /User/%SENDER:01%RECEIVER:01%SFTP%ACCEPTED%39fedh006dj68c88000dercg

%SENDER_01%RECEIVER_01%SFTP%ACCEPTED%39fedh006dj68c88000dercg - 0 bytes transferred

RETR /User/%SENDER:01%RECEIVER:01%SFTP%ACCEPTED%39fedh006dgjrrg4000a7dm3

%SENDER_01%RECEIVER_01%SFTP%ACCEPTED%39fedh006dgjrrg4000a7dm3 - 0 bytes transferred

RETR /User/%SENDER:01%RECEIVER:01%SFTP%ACCEPTED%39fedh006d30f1660016ch95

%SENDER_01%RECEIVER_01%SFTP%ACCEPTED%39fedh006d30f1660016ch95 - 0 bytes transferred

RETR /User/%SENDER:01%RECEIVER:01%SFTP%ACCEPTED%39fedh006d15fedc0014n4i0

%SENDER_01%RECEIVER_01%SFTP%ACCEPTED%39fedh006d15fedc0014n4i0 - 0 bytes transferred

sent 13, recd 13

Total uploaded files: 0

Total uploaded data: 0

Total downloaded files: 8

Total downloaded data: 0
ForumAdmin
Site Admin
Posts: 987
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

Looks like there might be some kind of variable problem in the parameters you are passing. Filenames don't look valid.
vfedorov
Posts: 15
Joined: Tue Jul 05, 2011 9:32 pm

FTP problem

Post by vfedorov »

[quote="ForumAdmin"]Looks like there might be some kind of variable problem in the parameters you are passing. Filenames don't look valid.[/quote]

this is a GXS trading grid EDI VAN service with a virtual file system. the files on the server include the % and : signs

i was able to use winscp to download the files, however it drops the file date and is a major pain to script. I Love CoreFTP but i am forced to use other tools because of this issue. I am willing to work with the CoreFtp developer to get this resolved.
ForumAdmin
Site Admin
Posts: 987
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

Navigate to the directory you wish to transfer files from, right click, select "Directory Commands" -> Directory Info.

Post the info here or email it to feedback at coreftp.com if you prefer
vfedorov
Posts: 15
Joined: Tue Jul 05, 2011 9:32 pm

RE: Scripting ssh transfers downloads 0 bytes

Post by vfedorov »

I emailed a postion of the results with the following subject:

RE: forum post (Posted: Wed Oct 05, 2011 4:45 pm Post subject: Scripting ssh transfers downloads 0 bytes)
vfedorov
Posts: 15
Joined: Tue Jul 05, 2011 9:32 pm

Re:Scripting ssh transfers downloads 0 bytes

Post by vfedorov »

Is there any way to set host type without using a profile?
Locked