The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to execute a binary file in solaris? agarwal SUN Solaris 4 10-17-2008 05:34 AM
cannot execute binary file durgaprasadr13 Linux 2 10-16-2008 11:29 AM
Crontab error Cannot execute binary file. raccsdl Shell Programming and Scripting 5 11-13-2007 06:22 AM
Can crontab execute binary files? Tris UNIX for Dummies Questions & Answers 5 12-07-2006 02:16 PM
compiled binary file gives "cannot execute binary file" scgupta SUN Solaris 0 07-13-2006 02:59 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #1 (permalink)  
Old 03-23-2009
bhag281 bhag281 is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 6
cannot execute binary file

HI,
i am trying to execute one .bin file which is a pre-installed (not compiled by me). But I am getting the error "cannot execute binary file".I checked the permissions and everything is ok.
also I checked ldd <bin-filename> andit showed a msg "not a dynamic executable"

Can anyone help in solving this?
  #2 (permalink)  
Old 03-23-2009
funksen funksen is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 431
try

file yourbinfile.bin

the ending .bin must not mean that it's executable from command line
  #3 (permalink)  
Old 03-23-2009
bhag281 bhag281 is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 6
when I ran the command file setup.bin, it showed

ELF 32-bit LSB Executable ,Intel 80386,Version 1(SYSV), for GNU/Linux 2.2.5 ,statistically linked, stripped
  #4 (permalink)  
Old 03-23-2009
bhag281 bhag281 is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 6
actually, I observed the problem now. I have to install a product.So, I created iso file for that product in one Linux machine and transferred that iso file to a linux machine(a virtual machine on mainframe), i am getting this corrupted binary file. But in the machine in which I have created the iso, the binary file is getting executed properly.Can you suggest how I can make this binary file to be ready to be executed ??
  #5 (permalink)  
Old 03-23-2009
funksen funksen is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 431
you can't run a binary compiled for x86 on mainframe linux

you have to compile the program on the mainframe from sourcecode, or get the precompiled mainframe version of it


edit:
oh I see that it is possible to run x86 Windows and Linux on Mainframe, so I'm out

Last edited by funksen; 03-23-2009 at 06:48 AM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0