![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to compare binaries | mblank | SUN Solaris | 2 | 05-26-2008 08:05 AM |
| compare two binaries. | abu_hassan | SUN Solaris | 2 | 04-30-2007 05:44 PM |
| Binaries/Depot for Subversion 1.4.3 for HP/UX 11.11 | spud | HP-UX | 3 | 03-29-2007 11:27 AM |
| Compile freeBSD binaries in Linux | shalmoo | High Level Programming | 0 | 10-01-2003 04:38 AM |
| Windows Binaries | Maestin | UNIX for Dummies Questions & Answers | 3 | 07-04-2002 03:51 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
FTP is corrupting binaries
I'm ftping some binaries from a centos box to an old DEC machine. They're being transferred in bin, but they're being corrupted somehow because when I run file filename on the centos machine, it shows that it's an executable. But after the ftp and running the same command on the DEC, the file type shows data. I've tried transferring it in a .tar and cpio, but I have the same results when they're extracted.
So my question would be is if the DEC machine is having problems reading the file? |
|
||||
|
It sounds as if the binaries are for a different architecture which run fine on the source machine buf fail miserably on the target machine. I would suggest FTPing the files back, in binary mode, from the old DEC machine to the centros box and then try to execute them.
If they execute normally, you can then eliminate FTP as the culprit. |
|
||||
|
The binaries were compiled on a DEC machine in-house. They were then gtarred and ftpd to a centos box. They then had to be ftpd to the DEC machine (no internet access). When the files are extracted, they're corrupt and not executable. Running a file filename on them shows a filetype of "data." Other non-binary files come out just fine.
The centos box doesn't have ftp running, but I'll see if I can get the service up and running and try ftping from the DEC machine. I will try the checksum. Thanks for the suggestions. And if you can think of anything else, I would appreciate it. |
|
||||
|
Quote:
Are you trying to run a binary from one machine OS/architecture on a different OS/architecuture? What operating systems are both machines? Do "uname -a" on each. |
![]() |
| Bookmarks |
| Tags |
| cpio |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|