Results 1 to 7 of 7
I have a file with “bin” extension (foo.bin) and I have tried to run it (./foo.bin) but I got the following message: -bash: ./foo.bin: cannot execute binary file
However, I ...
- 03-16-2009 #1Just Joined!
- Join Date
- Feb 2009
- Posts
- 9
Can Not run file with .bin extension
I have a file with “bin” extension (foo.bin) and I have tried to run it (./foo.bin) but I got the following message: -bash: ./foo.bin: cannot execute binary file
However, I did change permission by : chmod +x foo.bin
Is any way I can open and run this binay file?
- 03-16-2009 #2
Try using sh:
Code:sh foo.bin
Registered Linux user #270181
TechieMoe's Tech Rants
- 03-16-2009 #3Just Joined!
- Join Date
- Feb 2009
- Posts
- 9
I have tried (sh foo.bin) but did not work. It gives a message :"cannot execute binnary file"
- 03-16-2009 #4
Just out of curiosity, what kind of program is it that you're trying to run?
Registered Linux user #270181
TechieMoe's Tech Rants
- 03-16-2009 #5
It looks like your file is not a properly formed executable
file. The command file <filename> should tell you
what your system thinks this file is. Where did you get it?
Is it an installer for flash or realplayer or something?
- 03-16-2009 #6Just Joined!
- Join Date
- Feb 2009
- Posts
- 9
This file (foo.bin) is a result of compiling a program so when compilation is successfull, it produced this binary file.
- 03-16-2009 #7Registered Linux user #270181
TechieMoe's Tech Rants


Reply With Quote
