Results 1 to 5 of 5
iam running the command
as ./a.out
iam getting the following error as : cannot execute binary file
y this error coming
and how can i run this file
thank u,
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-23-2008 #1Just Joined!
- Join Date
- Jul 2006
- Posts
- 14
regarding executable file
iam running the command
as ./a.out
iam getting the following error as : cannot execute binary file
y this error coming
and how can i run this file
thank u,
inadvance,
sree
- 01-23-2008 #2
Can please cut and post the exact error message your getting ?
Explain your problem little bit more?First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-----
FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org
- 01-23-2008 #3Just Joined!
- Join Date
- Jul 2006
- Posts
- 14
:./comm
bash:./comm:cannot execute binary file
so wht it means.
is this file run in linux.
my distro is rhel5
thank u
- 01-23-2008 #4
Sorry .I still unable to under your question.
Check the permission of the file.
Let's go step by step:
first try this simple C program and save as file.c :
To complie:Code:main(){ printf("Linux - Programmers Paradise"); }
To execute :Code:gcc file.c
Please post ur outputCode:./a.out
First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-----
FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org
- 01-23-2008 #5Just Joined!
- Join Date
- Jul 2006
- Posts
- 14
thanks for ur intrest
actually i know tht
my friend send some so's and this executable file.
when i try to runt his file iam getting cannot open binary file
but he is telling tht this file is executing there.
but i think binary files will not execute in linux
am i right?.
but he is telling that same file in running there
both using rhel 5
tht's y iam confirming whether binary files run in linux or not
thank u
ssree


Reply With Quote
