Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: SFTP droping end of line character

galderson wrote:

transfer ascii

It's probably because you use ascii/text mode in script, while binary mode in GUI.
https://winscp.net/eng/docs/transfer_mode
galderson

SFTP droping end of line character

I upload the same file using ftp and then using sftp.

Sftp is dropping one character per line of text. (There are 3139 lines of text)

When using the GUI interface and transferring the same file using sftp, it works and preserves all of the characters.

Is there another parameter that I can use in script mode?

C:\ir\data\aa>winscp.com /script=\ir\macros\ftpputmt.cmd /log=winscplg.txt
Connecting to ftp.inforouteinc.com ...
Connected
Starting the session...
Session started.
Active session: [1] tempuser@ftp.inforouteinc.com
transfer ascii
testcase | 308 KB | 670.1 KB/s | ascii | 100%
Session 'tempuser@ftp.inforouteinc.com' closed.
No session.


C:\ir\data\aa>winscp.com /script=\ir\macros\ftpputmt.cmd /log=winscplg.txt
Searching for host...
Connecting to host...
Authenticating...
Using username "tempuser".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Session started.
Active session: [1] tempuser@ftps.gdom.net
transfer ascii
testcase | 305 KB | 701.1 KB/s | ascii | 100%
Session 'tempuser@ftps.gdom.net' closed.
No session.