1837522 Members
3731 Online
110117 Solutions
New Discussion

Re: ssh & ascii files

 
T G Manikandan
Honored Contributor

ssh & ascii files

Any workarounds with the sftp on the ascii files.The ascii files seem to the Carriage return character during the transfer.(^M)

Thanks
6 REPLIES 6
Joseph Loo
Honored Contributor

Re: ssh & ascii files

hi,

have you try the commands, dos2ux or ux2dos?

# /usr/bin/dos2ux >

regards.
what you do not see does not mean you should not believe
T G Manikandan
Honored Contributor

Re: ssh & ascii files

Not with external tools.
With sftp is there a option to transfer ascii files.
Steven E. Protter
Exalted Contributor

Re: ssh & ascii files

TG

I've been usins Secure Shell and Openssh between Linux and HP-UX pretty extensively over the past two years.

I frequently use it to transfer ascii perl scripts between my web servers.

In my exerperience, without any help or assisstance, its gotten those transfers right without adding carriage returns. This is between Unix systems.

I've got a tool that works with Windows, its command line, but I'll give it a shot and see what the results are.

You initial question doesn't specify the source and target of the transer. I can say though on Unix to Unix I've not had this problem and I've literaly moved thousands of files this way.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
T G Manikandan
Honored Contributor

Re: ssh & ascii files

Windows to UNIX.
T G Manikandan
Honored Contributor

Re: ssh & ascii files

we are transfering source files from windows to unix.

It differs in chksum.
Steven E. Protter
Exalted Contributor

Re: ssh & ascii files

Oh Windows SFTP

The free tools are worth crap.

Here is one that might work.

http://www.networksimplicity.com/openssh

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com