The permission bit in a file mode that allows a file to be run as a program. Also, questions related the format of program files, and to locating and executing program files.

learn more… | top users | synonyms

8
votes
2answers
375 views

How does a shell execute a program?

If I compile a program using gcc, and try to execute it from the bash shell, what is the exact sequence of steps followed by bash to execute it ? I know fork(), execve(), loader, dynamic linker (and ...
-1
votes
0answers
13 views

How to use BlueZ tools? [on hold]

I successfully compiled bluez-libs-3.36 and bluez-utils-3.36, and got the programs sdptool,hcitool and hciconfig. I copied them to my device and exectued chmod a+x on all three of them. But if I try ...
0
votes
0answers
20 views

strace | Who's making syscalls ? | Where are the instructions?

I've been told that strace is used to track all the system calls made while running an application. I see that there are a lot of system calls made even before the first printf ( now write ) call. ...
32
votes
2answers
731 views

Why and how are some shared libraries runnable, as though they are executables?

On 32-bit Linux systems, invoking this $ /lib/libc.so.6 and on 64-bit systems this $ /lib/x86_64-linux-gnu/libc.so.6 in a shell, provides an output like this: GNU C Library stable release ...
1
vote
1answer
34 views

Can't run c program in other partition

I'm in dual boot with Windows, and i've created a shared ntfs partition. I' ve cloned a project from github, use make to compile it but seems it isn't recognized as runnable. I've added the right ...
1
vote
1answer
124 views

cannot execute binary file

I have a application that gives the error: nhsupsserver: cannot execute binary file I read some texts and the most speak about an architecture mismatch and executable file. The line that ...
1
vote
0answers
47 views

“Illegal instruction” on a static MIPS binary

On my MIPS box I'm trying to run a program. I use a cross compiler for mips. When I run my program, I'm getting Illegal instruction I pulled of one binary from it, called cputest. It basically ...
1
vote
3answers
71 views

Is it possible to start programs (saved in the menu) from the terminal?

Recently I switched over to Linux Mint. I am finally getting the hang of using the terminal, but there is one question that I find myself coming back to: Is it possible to start a program that is ...
1
vote
1answer
48 views

Get executable for any command [duplicate]

I want to know which executable gets executed for any command in bash. Example: I have firefox installed here /usr/bin/firefox, it is in the $PATH alias browser=firefox alias br=browser Now I ...
5
votes
1answer
58 views

Script started as `source` or `executable`?

Can we determine inside the very script whether it started as source (.) or executable (shebang or something alike)?
1
vote
2answers
51 views

Why does trying to run a python executable return ': No such file or directory' after transferring it to server via FTP? [duplicate]

I'm having an issue where when I transfer a Python file to my VPS via FTP and try to run it using ./foo.py I am returned with the error: : No such file or directory. The error seams to indicate that ...
0
votes
1answer
53 views

Supervisor: no such file or directory even though it is there [duplicate]

I am trying to start supervisor service supervisor start, as root, but it gives me env: /etc/init.d/supervisor: No such file or directory Yet, I can clearly see that file exists: ...
0
votes
1answer
41 views

Can't run tmux although it's installed [duplicate]

I compiled tmux from source on Ubuntu 12.04 and it is installed in /usr/local/bin/tmux by default. However, when I type tmux in terminal I get the following message: $ tmux -bash: /usr/bin/tmux: No ...
7
votes
1answer
69 views

Unable to run an executable built with NASM

I am attempting to assemble the assembly source file below using the following NASM command: nasm -f elf -o test.o test.asm This completes without errors and I then try to link an executable with ...
2
votes
0answers
35 views

What is the mechanism behind my script losing its executable bit after I append to it in a script? [closed]

I am wondering if this is behavior due to SELinux or something else. I have a deploy script that I run and inside, I had sudo chmod +x /etc/rc.local, and some lines later I echo some startup ...
1
vote
4answers
214 views

Is it possible to execute a binary without specifying the full path or the preceding './'?

Outside of a shell, such as running some other process, what does the term current directory mean, and is it possible to execute a binary without specifying the full path or the preceding './', ...
1
vote
0answers
41 views

binary is able to run only when run after creating a symbolic link to it

I am facing a rather strange problem. I have a 32 bit qmake binary placed at a very deep path. So for ease of use I created a link using ln -s /complicated/path/to/qmake ~/qmake I am running a ...
2
votes
1answer
72 views

Unable to start vscode executable

I downloaded and extracted the VSCode zip. I see the Code binary file, but doubleclicking it in my file manager does nothing. I also tried ./Code in console, but I only get bash: ./Code: cannot ...
0
votes
0answers
43 views

kickstart does not chmod a file in %post section

I have the following code executed in the %post section of a kickstart file for RHEL 6.6. echo '#!/bin/sh' > /root/add_user echo 'if [ $# -lt 1 ]; then echo "no username provided"; exit 1; fi' ...
2
votes
2answers
253 views

Executable script can't run directly from desktop in Arch Linux

Before, I was using Linux Mint and I can run bash script directly from desktop just with chmod the script to executable. For example, I have a script like this: #!/bin/bash VBoxSDL --startvm ...
23
votes
1answer
928 views

How does Linux determine what facilities to use to run a (non-text) binary?

I understand that Linux uses shebang line to determine what interpreter to use for scripting languages, but how does it work for binaries? I mean I can run Linux binaries, and having installed both ...
2
votes
1answer
50 views

set default process and IO priority on Linux for given application/executable

Is it possible to set up some sort of default process and IO priority for given application/executable? I am thinking some sort of FS extended attribute or loadable "policy" of sort?
0
votes
1answer
94 views

Can I run files from Ubuntu in Mint?

I was wondering, since recently I've decided I want to move from Ubuntu 14.04 to XFCE mint linux, if games installed in Ubuntu will run in Mint? I've copied my home folder onto an external hard drive, ...
3
votes
1answer
3k views

What does 'wine: Bad EXE format for Z:\m\Desktop\PortForward Network Utilities.desktop' mean?

Installed wine on Debian to run a Windows exe - specifically the PortForward Network Utilities bundle: http://portforward.com/help/setup_static_ip_address.htm ). Input: wine '/m/PortForward ...
0
votes
1answer
29 views

does not execute a file on os x with $PATH

I have dowloaded blat from here. I have also added in to executable path: PATH=$PATH:/Users/katja/Desktop/MyDocuments/Programms/blat But I can run the program only from the folder where it is ...
2
votes
1answer
102 views

About executing shell script

Suppose I have a shell script file foo.sh. I can do chmod + x foo.sh and change it into an executable file. In Kernighan-Pike: Unix Programming Environment (UP) they show that after this typing ...
0
votes
2answers
99 views

Open/read Unix Executable file [closed]

Is there a native way (no installing or downloading extra stuff) to read a Unix executable file? I just need to read file to see what's in it and learn what I can use it for. What I'm really trying ...
1
vote
1answer
31 views

Gnomes .desktop current path

Im trying to make a desktop file to start Strife but it doesnt work as it should. For the current Path im using this here: '"$(dirname "$1")"' And to run the executable I use this command: '"$(dirname ...
1
vote
2answers
71 views

Why when we run a executable file we need to add ./ ahead? [duplicate]

Say I have a somecommands.sh and I use chmod 777 to make it executable. Why I have to type ./scommand.sh instead of typing just somecommand.sh to run it from its own directory? Does this make any ...
2
votes
0answers
37 views

Why won't my python scripts run without the python command when moved from Windows to Linux? [duplicate]

I have some Python files that I wrote on my Windows PC and then sent over to a Linux machine using pscp. They work as intended on Windows, but when I try to execute them on the Linux machine, I always ...
1
vote
1answer
470 views

How to add 'Make executable' and 'Run' entries to Elementary OS file manager context menu?

I know this is to be done by creating a .contractor file in /usr/share/contractor. For example, one like this will add a menu option to open a folder as root. [Contractor Entry] Name=Open folder as ...
0
votes
1answer
198 views

/usr/bin/time cannot execute binary file

I believe I've corrupted the /usr/bin/time executable as when I try to run it, this is the message that shows up: bash: /usr/bin/time: cannot execute binary file It was working till I inadvertently ...
0
votes
0answers
652 views

“exec format error” on docker run

I have a MacBook Pro running Yosemite. On this I have Virtualbox installed with an Ubuntu system running within it. All packages on both are reasonably up to date (within a month of current). ...
6
votes
1answer
4k views

No such file or directory but I can see it!

I'm trying to run a python script, on a headless Raspberry PI using winSCP and get the following error message: Command '"./areadetect_movie_21.py"' failed with return code 127 and error message ...
0
votes
2answers
421 views

Java does not run with error “No such file or directory”, despite it exists and is x86_64

The file exists but bash complains it doesn't when asked to execute it. $ ./Libs/openjdk-1.8.0_60-eap/bin/java bash: ./Libs/openjdk-1.8.0_60-eap/bin/java: No such file or directory $ ls -l ...
1
vote
2answers
32 views

How do I add a program with a directory of dependencies to $PATH?

I want to add a program to my $PATH, but its code is split into various files that it imports at run-time from a lib/ in its root directory. projectRootDirectory ├ programBinary └ lib ├ someLibrary ...
11
votes
1answer
445 views

When can I edit strings in an executable binary?

I have an executable binary; let's call it a.out. I can see the binary contains strings $ strings a.out ... /usr/share/foo .... I need to change the string /usr/share/foo to /usr/share/bar. Can I ...
1
vote
1answer
59 views

File that is only readable with root privileges

I have a binary file that needs to run at startup on all accounts (including unprivileged user accounts), so a command to run it will be put into /etc/rc.local. The program itself will have only ...
0
votes
1answer
52 views

Error while executing a.out from C shell

I am in my home directory. And there is an executable a.out in there. I want to execute it like- /bin/csh ~/a.out ^F^E@@@@@▒^A▒^A^H^C^D^B^B@^B@^\^\^A^A^E@@: Event not found. Its not that I cannot ...
1
vote
0answers
128 views

Linux Executable with Unknown type asking to be executable every time I run it in Nemo

When I try to open an executable with the type Unknown I get a message saying: "The file 'file name' has no known programs associated with it. If you trust the source of this file, and have ...
1
vote
1answer
34 views

Resolving the location/registration of an executable in the system?

I am on Ubuntu 11.04, Gnome 2. I had at a certain point installed Adobe Reader (acroread), however "off-tree" (at a non-standard location) - and I just noticed something weird about this executable. ...
0
votes
2answers
752 views

Is there on Ubuntu a best way to execute a program than terminal command “./”

Is there on Ubuntu an best way to execute an program than terminal command "./". I have put PhpStorm into an folder and when I want execute PhpStorm, I must cd bin/ and execute with this command: ...
0
votes
1answer
249 views

How i make this script execute every minute without cron? [duplicate]

I have this: #!/bin/bash wlan=`/sbin/ifconfig wlan0 | grep inet\ addr | wc -l` if [ $wlan -eq 0 ]; then echo wlan0 not connected, connecting... echo sudo ifup wlan0 logger wlan0 reconnected. echo ...
1
vote
0answers
262 views

Can not execute Heroes of Neweth binary file

I'm trying to install Heroes of Newerth on openSUSE 13.2, KDE 4.14. I downloaded the client from official website. I checked is executable option in properties. But when i double clicked on the file ...
6
votes
6answers
2k views

How can one run a program installed in one machine from another machine?

Is it possible to have, say, one machine with software installed and call that software from another machine? I thought this would be called an "application server" but by googling I find things that ...
2
votes
2answers
72 views

Is it possible to call an executable's functions?

I want to find out whether it is possible to circumvent an executable's gui by calling the programs internal worker methods/functions directly. Assuming the executables are C/C++ programs with a ...
2
votes
2answers
354 views

How to execute Mach-O 32-bit C++ program on Linux?

I want to execute a program (which I know was written in C++), but I get this error: zsh: exec format error: ./myProgram Output of file myProgram: myProgram: Mach-O i386 executable My system is ...
0
votes
0answers
132 views

shared libraries error trying to run executable

I'm trying to run an executable off the command line in a linux cluster environment. The error message I get states libssh2.so.1: cannot open shared object file: No such file or directory I ...
1
vote
1answer
3k views

what is zsh: exec format error in redhat?

zsh: exec format error... his is the error I was getting when trying to execute a large application. I am using redhat Linux. What can I do to solve this?
2
votes
4answers
673 views

/home/amnesia/myfile: command not found — 64-bit executable, 64-bit kernel

Trying to run an executable file on terminal (I am using Tails live OS), but I keep receiving an error message. I have set permissions already. The command I wrote: sudo ./home/amnesia/myfile I ...