LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   to execute binary file (https://www.linuxquestions.org/questions/linux-newbie-8/to-execute-binary-file-845456/)

arunprasanna 11-20-2010 02:57 AM

to execute binary file
 
I want to know how to execute a binary that is running in linux version 2.4 through shell script file.

repo 11-20-2010 03:31 AM

Which file?
First make the file executable
Code:

chmod +x filename
To execute the file
Code:

/path/to/file/filename
Kind regards

jdkaye 11-20-2010 04:14 AM

Any particular reason why you're running a 2.4 kernel? It is soooooo last century. (very very old) ;)
jdk

MTK358 11-20-2010 09:37 AM

If the file is in the current dir, you have to explicitly say that:

Code:

./myexecutable
("." means current dir)


All times are GMT -5. The time now is 11:27 PM.