- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to set SFTP to transfer the files in ASCII mod...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2009 11:08 AM
тАО08-04-2009 11:08 AM
I want to transfer the files through SFTP in ASCII mode, But i know there is no command available to set it in ASCII mode. But there is something call dos2unix utilty to convert the files first before i send the files through sftp. Please anyone can tell me where is this utilty available and how to use, so that i can transfer the files through SFTP.
Thanks,
Narendra
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2009 11:33 AM
тАО08-04-2009 11:33 AM
Re: How to set SFTP to transfer the files in ASCII mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2009 11:42 AM
тАО08-04-2009 11:42 AM
SolutionThe utility is 'dos2ux' and 'ux2dos' (see the manpages!). BUT, as mentioned, tools like 'winscp' offer the ability to perform ASCII or binary transfers where the former handle any necessary addition/subtraction of carriage-return characters.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2009 06:08 PM
тАО08-04-2009 06:08 PM
Re: How to set SFTP to transfer the files in ASCII mode
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2009 06:45 PM
тАО08-04-2009 06:45 PM
Re: How to set SFTP to transfer the files in ASCII mode
> in ASCII mode, [...]
From what? "uname -a"?
To what?
Some SFTP client programs actually have an
"ascii" command, by the way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2009 09:48 PM
тАО08-04-2009 09:48 PM
Re: How to set SFTP to transfer the files in ASCII mode
Lesson learned: read the documentation of your SFTP client carefully!
The dos2ux/ux2dos commands change only the line termination characters. When moving text files from one type of computer system to another, it may be necessary to apply character set conversions too. The "iconv" tool is included in HP-UX for this purpose.
http://docs.hp.com/en/B2355-60127/iconv.1.html
If files are transferred between two Unix systems that are configured to use the same character set, there is no need to apply any conversions and you can just transfer the files as-is. This is what the "binary" mode of FTP does, and also what SFTP does (unless the client has some extra features).
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2009 10:51 PM
тАО08-18-2009 10:51 PM