This site is not affiliated with or endorsed by Apple Inc. User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. Terms Privacy Security Status Help You can't perform that action at this time. su - jetty sh /where/ever/runProgram.sh –aaberg Apr 25 '12 at 21:46 add a comment| 2 Answers 2 active oldest votes up vote 4 down vote accepted Try su - jetty -c
The implication is simply this: su is doing in essence: /bin/sh *arguments_to_su* but it does it as another user (the "effective user id")... Browse other questions tagged linux shell or ask your own question. if you were to simply do this: su - jetty ./runprogram.sh Then the su command will call /bin/sh with the program ./runprogram.sh as its argument, and jetty as the effective user Browse other questions tagged files executable binary fortran or ask your own question.
This works for most ARM binaries but there are a few that may not run correctly. objdump shows the binary is 64-bit elf64-x86-64 uname shows my machine is 32-bit i686 $ ./FF.Communicator bash: ./FF.Communicator: cannot execute binary file $ uname -mpio i686 i686 i386 GNU/Linux $ objdump move back and forth between the processor instruction set compatible with will usually work well, if they are not compatible CPU will not be able to understand instructions. Cannot Execute Binary File Exec Format Error Ubuntu Lab colleague uses cracked software.
How to reply? Success! QGIS Print composer scale problems How can I save a file to a new location from inside Vim? My boss asks me to stop writing small functions and do everything in the same loop Sharepoint 2013: Rest API - does header need to include X-RequestDigest?
Two-way high power outdoor Wi-Fi In the context of this quote, how many 'chips/sockets' do personal computers contain? Cannot Execute Binary File Ubuntu The time now is 01:57 AM. Adv Reply May 30th, 2012 #4 gnusci View Profile View Forum Posts Private Message Visit Homepage Quad Shot of Ubuntu Join Date Aug 2007 Location Canada Beans 440 DistroUbuntu 14.04 If you got that file, let's say, in archive - try to unpack it inside VM, in some directory inside viertual drive, not folder mapped to your host machine hard drive,
Adv Reply May 30th, 2012 #9 gnusci View Profile View Forum Posts Private Message Visit Homepage Quad Shot of Ubuntu Join Date Aug 2007 Location Canada Beans 440 DistroUbuntu 14.04 up vote 9 down vote Try to run it using ./executablefilename instead of using sh executablefilename. Bash Cannot Execute Binary File Mac What is the point of update independent rendering in a game loop? Cannot Execute Binary File Bash So I guess my question should be, is it possible to determine what 32 bit library components I do need to install to make this specific piece of software work?
Last edited by ertansinansahin; May 30th, 2012 at 12:59 AM. news Index Nav: [DateIndex] [SubjectIndex] [AuthorIndex] [ThreadIndex] Message Nav: [DatePrev][DateNext] [ThreadPrev][ThreadNext] Other format: [Raw text] Re: cannot execute binary file From: Gerry Reno
US Election results 2016: What went wrong with prediction models? Just a blank window. > > In that case, there's something in your installation that isn't quite right. > The above suggestion resolves the issue you described just fine for me. I suppose a better starting point would be, what is the output of echo $PATH ? (edit: the export command is a way to define an environment variable in bash.) –Darth http://ibuildsystem.com/cannot-execute/unix-bash-cannot-execute-binary-file.php If you need to run that executable you have two choices: Get an x86-64 version of the executable (by any mean; if you're unable to get an x86-64 version of the
Use export PATH=/bin:/usr/bin:/sbin:/usr/sbin to fix the $PATH issue until you can fix the root cause of /bin/id failing. Bash Cannot Execute Binary File Exec Format Error Does this qualify as a bug? Does that file run on the original machine, you complied it on?
share|improve this answer answered Jun 13 '12 at 1:27 RidDeBakTiYar 163229 add a comment| up vote 4 down vote I'm making some wild guesses here, but it looks like the following I am on Mavericks, and I have installed the latest Command Line Tools of XCode. So su - jetty sh ./runprogram.sh is akin to (become the user jetty via login or su) /bin/sh sh ./runprogram.sh ...and the shell will report an error, because the first /bin/sh, check my blog that's all...
Assigning only part of a string to a variable in bash Start a coup online without the government intervening Solving a discrete equation more hot questions question feed lang-bsh about us Your operating system does not mean the same executable will run. But the -c option works in this case; because you are telling su that you want to run /bin/sh with the -c option to the shell: su - jetty -c "cp asked 2 years ago viewed 13697 times active 2 years ago Related 3How to get to know OS X/Unix better?2Using MacPorts bash, tab completion no longer lists hidden / dot files0bash
Departing from airport before visa is valid, but arriving when it is How to handle a common misconception when writing a Master's thesis? What do I do? Just use chmod +x 'path to the file' and then run 'the path to the file' in terminal.This is how I solved my problem. I have another question.
Someone peeled an American flag sticker off of my truck. I am using Debian Squeeze Linux linux bash ssh debian share|improve this question edited Jun 12 '12 at 22:31 Oliver Salzburg♦ 56.7k37188245 asked Jun 12 '12 at 21:26 superuser 1,86131428 4 Browse other questions tagged linux bash ssh debian or ask your own question.