Operating System - HP-UX
1753625 Members
5498 Online
108797 Solutions
New Discussion юеВ

Re: transferring binary from windows to hpux

 
SOLVED
Go to solution
Arunvijai_4
Honored Contributor

Re: transferring binary from windows to hpux

Also, you can use # strings file_name > new_name

-Arun

"A ship in the harbor is safe, but that is not what ships are built for"
Arturo Galbiati
Esteemed Contributor

Re: transferring binary from windows to hpux

Hi SHiv,
this occurs because you transfer the ascii file with binary option in FTP and this will case the ^M you see in the file. To avoid this transfetr the ascii file in ascii mode and ftp will automatically convert to the rigth format or remove ^M at th unix side.
A lot of option to remove ^M:
dos2ux
vi -c "%s/^M//g|wq" filename (type ctlr V ctrl M to obtain ^M)

HTH,
Art
Bill Hassell
Honored Contributor

Re: transferring binary from windows to hpux

The term "binaries" is somewhat ambiguous. Most of the time, it refers to executable programs, but that is a special case, There are many, many other types of binary files on both Windows and Unix. For instance, the LVM status file /etc/lvmtab is a binary file because special codes are stored in the file (along with a few ASCII strings). Similarly, the ioconfig file in HP-UX is binary and none of it is readable without a special program. If you write a program to store data, you might store the data items as integers rather than ASCII strings to save disk space.

The same is true on PCs. You can safely assume that executable programs are 100% *incompatible* between machines that are running different OS's. Even among PCs, a binary exceutables are often incompatible between different versions of Windows.

As far as SSL certificates go, open one with Notepad and see if you can read it. If the text is unreadable, then it is a binary file and must be transferred in binary mode. Transferring a binary file in ASCII mode will corrupt the file.


Bill Hassell, sysadmin