- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- transferring binary from windows to hpux
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
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
тАО01-29-2006 11:18 AM
тАО01-29-2006 11:18 AM
When an ascii file is transferred to hpux; sometime i have seen ^M characters at the end of the line on hpux.
If binary file is transferred via ftp in bin mode from windows to hpux then do i need to take care of anything ?
Thanks,
Shiv
Solved! Go to Solution.
- Tags:
- ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2006 11:35 AM
тАО01-29-2006 11:35 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2006 11:53 AM
тАО01-29-2006 11:53 AM
Re: transferring binary from windows to hpux
is binary also different ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2006 11:54 AM
тАО01-29-2006 11:54 AM
Re: transferring binary from windows to hpux
is binary also different ?
If no; then how come binary files has been made platform independent ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2006 11:56 AM
тАО01-29-2006 11:56 AM
Re: transferring binary from windows to hpux
THe "^M" character you see is the graphic representation of a carriage-return character.
Unix uses a newline (linefeed) character to denote the end of a line. Windows uses a linefeed plus carriage return couplet to do the same.
When you specify an ASCII mode FTP transfer, the conversion to add or delete a carriage return character occurs automatically. Binary mode transfers are transparent transfers. Octets are transfered "as is" and nothing is added nor deleted.
If you find that you have a file in the wrong mode, you can use 'dos2ux' or 'ux2dos' to strip or add the carriage return character. See the man pages for 'dox2ux' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2006 03:36 PM
тАО01-29-2006 03:36 PM
Re: transferring binary from windows to hpux
DOS text files traditionally have carriage return and line feed pairs as their newline characters while Unix text files have the line feed as their newline character. So you get ^M when you transfer windows to Unix in ASCII mode.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2006 03:47 PM
тАО01-29-2006 03:47 PM
Re: transferring binary from windows to hpux
The ASCII code is a standardized computer code which corresponds every letter, number, punctuation mark, etc. to a number between 0 and 255. This is the way computers store text files: each character in the file corresponds to a byte (8 bits, 2^8 = 256 possible combinations).
The line feed (LF) has ASCII code 10, and the carriage return (CR) has ASCII code 13. When computers first proliferated, there was some debate over how the end of lines should be stored in the file. To this day, UNIX systems use only the LF, while DOS systems use CRLF.
That is, if your file looks like this:
he
llo
UNIX would store this file as: 104 - 101 - 10 - 108 - 108 - 111
while Windows would store this file as: 104 - 101 - 13 - 10 - 108 - 108 - 111.
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2006 04:23 PM
тАО01-29-2006 04:23 PM
Re: transferring binary from windows to hpux
The problem is caused when a binary file ( eg: shar file) is downloaded to a pc. The pc
places
pc style end of lines in the file. The ^M is a visual representation of
the line feed not needed on unix. You can fix this by doing the
following:
# dos2ux sharfile > sharfile1
# sh sharfile1
x - README [compressed]
x - install.ksh [compressed]
x - inquiry256.1m [compressed]
x - inquiry256.ksh [compressed]
x - inquiry256 [compressed]
Hope these informations will help you..
Regards,
Shameer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2006 04:32 PM
тАО01-29-2006 04:32 PM
Re: transferring binary from windows to hpux
You asked about "If binary file is transferred via ftp in bin mode from windows to hpux then do i need to take care of anything ?"
No, "bin" mode is fine for binary files. You dont need to take care of anything except checksum value.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2006 05:19 PM
тАО01-29-2006 05:19 PM
Re: transferring binary from windows to hpux
# dos2ux
Use binary mode with ftp when transfer files between two different platforms.
--
Muthu