LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2010, 02:57 AM   #1
arunprasanna
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Rep: Reputation: 0
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.
 
Old 11-20-2010, 03:31 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Which file?
First make the file executable
Code:
chmod +x filename
To execute the file
Code:
/path/to/file/filename
Kind regards
 
Old 11-20-2010, 04:14 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Any particular reason why you're running a 2.4 kernel? It is soooooo last century. (very very old)
jdk
 
Old 11-20-2010, 09:37 AM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

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

Code:
./myexecutable
("." means current dir)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[ask] cannot execute binary file satria23 Programming 2 07-28-2010 12:01 PM
Cannot execute binary file Nishant Desai Programming 18 10-27-2008 03:37 PM
cannot execute binary file kish_or Linux - Newbie 4 05-07-2008 01:53 AM
cannot execute binary file agallego75 Programming 3 08-29-2006 10:33 AM
Cannot Execute Binary File meshcurrent Linux - Software 3 07-09-2005 04:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration