LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Difficulty executing a binary file (http://www.linuxquestions.org/questions/linux-software-2/difficulty-executing-a-binary-file-100003/)

Judland 10-03-2003 09:23 PM

Difficulty executing a binary file
 
I've done this before successfully, but don't quite understand why I'm having difficulty now.

I have a binary file I want to run under Linux. As with every other binary file, I try to execute it with 'sh' but I get an error message... 'cannot execute binary file' Anyone have any suggestions?

I see the file listed as an executable, but somethings just not right. The binary file I download, which installs the program, ran perfectly fine.

Any ideas? :confused:

teval 10-03-2003 09:25 PM

Sh interprets shell scripts. They are not binary files, they are an interpreted scripting language.

To run binary files use:

./<name>

Without the <>
No space before.

Judland 10-03-2003 11:03 PM

I appreciate the response. Thanks. That should have dawned on me.


All times are GMT -5. The time now is 02:31 AM.