LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-03-2003, 09:23 PM   #1
Judland
Member
 
Registered: Jul 2003
Location: Saskatchewan, Canada
Distribution: Mandriva Free 2006
Posts: 42

Rep: Reputation: 16
Difficulty executing a binary file


I've done this before successfully, but don't quite understand why I'm having difficulty now.

I have a binary file I want to run under Linux. As with every other binary file, I try to execute it with 'sh' but I get an error message... 'cannot execute binary file' Anyone have any suggestions?

I see the file listed as an executable, but somethings just not right. The binary file I download, which installs the program, ran perfectly fine.

Any ideas?
 
Old 10-03-2003, 09:25 PM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
Sh interprets shell scripts. They are not binary files, they are an interpreted scripting language.

To run binary files use:

./<name>

Without the <>
No space before.
 
Old 10-03-2003, 11:03 PM   #3
Judland
Member
 
Registered: Jul 2003
Location: Saskatchewan, Canada
Distribution: Mandriva Free 2006
Posts: 42

Original Poster
Rep: Reputation: 16
I appreciate the response. Thanks. That should have dawned on me.
 
  


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
Samba Domain Difficulty with a new File Server mrlogansworld Linux - General 1 09-29-2005 08:43 PM
Missing libstdc++.so.6 executing 3rd party binary wkuk Programming 1 09-23-2005 04:07 PM
executing binary issues +0+4|_ n00b Linux - Newbie 1 03-04-2005 01:55 PM
convert text file to binary excel file ust Linux - General 2 11-23-2004 02:33 AM
executing binary problems. cheater1034 Linux - Software 2 09-18-2004 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:08 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
Open Source Consulting | Domain Registration