Results 1 to 6 of 6
i am executing a binary file "cpmod" by directly drag n drop in shell... its saying 'Bash:cannot execute a binary file'
FYI ..
file permissions are set to me as ...
- 09-23-2008 #1Just Joined!
- Join Date
- Sep 2008
- Posts
- 3
How to execute binary files in Centos5..
i am executing a binary file "cpmod" by directly drag n drop in shell... its saying 'Bash:cannot execute a binary file'
FYI ..
file permissions are set to me as read write n execute.
Centos5 cannot execute binary files??
can i have to do any changes to shell or install any packages??
its urjent...!!!
- 09-23-2008 #2
just type cpmod from the shell to execute it, assuming it is on your path, you can either add the location of the binary file to your path or you can add the binary file to a directory on your path
- 09-23-2008 #3
In my experience, this message appears when you
try to execute a file that is not a properly formed
executable file. Did you compile it yourself?
- 09-24-2008 #4Just Joined!
- Join Date
- Sep 2008
- Posts
- 3
no i didnt compile it by myself.. its pre-installed software... as i said im running it on centos5 32bit platform.. afaik by googling its not a well formed executable, as u said.. how i can get rid of this problem.. these type of executables are different for every flavour of linux
how can i know which flavour of linux runs this binary file.. so that i can install that linux..
its
guys..
- 09-24-2008 #5Just Joined!
- Join Date
- Sep 2008
- Posts
- 3
FYI...
list of commands and results in my shell..
uname -s :: Linux
uname -p :: i686
uname -m :: i686
uname -i :: i386
- 09-25-2008 #6
You could reinstall it, making sure you use the RPM file
for your architecture. The suffix on the file is a telltale sign.
It should say i386, i686 or something and not 64bit,
not PPC or alpha or some other type of machine.



