Executable file

Hi everybody:

I have strange problem. I have compiled a source code and created an executable file. This file I can use it into my PC, but when I copy this executable to my laptop this one doesn't work and the system tell me:

bash: ./sbdart_unix: cannot execute binary file

Somebody can help me. Thanks in advance.
:o

I assume OS are same both in your PC and laptop,since all executables are not platform independent it will through error if OS is different.

You have to copy the files in binary mode,since executable files are in binary format.Better 'ftp' the file in binary mode.

Regards
Dileep Pattayath

How I can copy in binary mode exactly. :smiley:

within ftp, type bin.

i.e.

ftp> bin
200 Type set to I.
ftp>