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

0
votes
1answer
36 views

File does exist but won't execute [duplicate]

I have a file that does exist but won't execute. It says : "No such file or directory". This file is created by a script while creating a "custom toolchain" to compile native libraries for Android ...
112
votes
1answer
7k views

How is Mono magical?

I'm learning C#, so I made a little C# program that says Hello, World!, then compiled it with mono-csc and ran it with mono: $ mono-csc Hello.cs $ mono Hello.exe Hello, World! I noticed that when I ...
0
votes
0answers
18 views

Perl script doesn't execute even when executable permission given? [on hold]

I have given a perl script file executable permission, but when I try to execute the file I get a "command not found" error. I have #!usr/local/bin/perl at the start of the script file.
2
votes
2answers
51 views

Difference between /usr/bin and /usr/local/bin [duplicate]

What is the difference between /usr/bin and /usr/local/bin? Why are there both directories and why do some executable programs exist in both directories?
1
vote
1answer
39 views

Where is the nginx executable on Debian? [closed]

I've installed the nginx-light package on debian, but I can't find the executable. It's not in /usr/bin, like it says on the official nginx website. Where is it, then?
0
votes
0answers
15 views

Equivalent to OS X's py2app and Windows's py2exe?

I'm writing an application in Python. I don't expect my end users to be particularly tech-savvy, so I'd like to package it up like a familiar native executable. For OS X, that means running it ...
2
votes
0answers
11 views

How can I add my program to system program list (Ubuntu 14.04)? [duplicate]

I made a my program in c++ and generated its executable but every time I need to use my program I need to change my directory to the folder and then execute it. How do I make my program run like an ...
3
votes
2answers
85 views

Handling duplicate programs names bash

I'm wondering if $PATH cascades entries. You'll all need to take a leap of faith with me here, but here it goes. Let's say we have a Java executable at /usr/bin/java but this version is very old and ...
0
votes
1answer
87 views

Installing Wine 1.8 on Debian not working

I followed this link http://tecadmin.net/install-wine-on-ubuntu-and-debian/# to install Wine on Debian 7.9 Wheezy but to no avail. When I reached step sudo ./configure --enable-win64 it asked for ...
0
votes
0answers
12 views

Aardvark Control Center wants TLS/SSE2 Library

Environment: CentOS 7.1 64-bit using Intel i7-4771 Gnome 3 shell I downloaded the Aardvark Control Center (Total Phase) and tried to execute the controlctr bash file, however I received the error ...
-1
votes
1answer
38 views

Remote app - bash: cannot execute binary file [duplicate]

I have an app in a remote Linux machine. I am trying to execute the app via ssh, but I get the error: bash: /app: cannot execute binary file Why is this happening? The application works fine in the ...
3
votes
2answers
328 views

The type command can't distinguish between an executable command and a shell script

So I was reading the book The Linux Command Line, and it says that commands are of four types: (1) executable programs (2) shell builtins (3) shell functions (shell scripts) (4) ...
3
votes
1answer
33 views

setuid example from Wikipedia: 4700

I was reading about setuid on Wikipedia. One of the examples goes as follows: 4700 SUID on an executable file owned by "root" A user named "tails" attempts to execute the file. The file ...
1
vote
1answer
22 views

a.out - Data segment and text segment are contiguous iff text segment is not shared. Why is this so?

I was reading the man page for the ancient a.out format (located here), trying to understand the evolution of Unix executable formats. I was wondering about something. The man page says that if the ...
1
vote
1answer
26 views

auditctl comm vs. exe

I was looking at Linux audit reports. Here is a log from ausearch. time->Mon Nov 23 12:30:30 2015 type=PROCTITLE msg=audit(1448281830.422:222556): proctitle=6D616E006175736561726368 ...
0
votes
0answers
15 views

“No such file or directory” attempting to run executable [duplicate]

I'm trying to run a binary on my freshly-flashed Ubuntu box. The file exists, I have permissions to run it, but I'm getting "No such file or directory" error. gkistner@gkistner-dt3:~/cx/_temp_dump$ ...
3
votes
1answer
122 views

arm-eabi-gcc: cannot execute binary file

I am trying to build a ROM from AOSP 5.1.1 specifically (Nexus 7 - grouper). However, a while ago I got stuck at this part while building the kernel. The following command works fine: make ...
1
vote
2answers
41 views

“No such file” with ksh, but script runs with ksh -x?

I'm trying to execute a shell script on OpenBSD 5.7/amd64. Its a test script used to test a FOSS project. (OpenBSD is one of our targets because it provides an ancient compiler out of the box). When ...
2
votes
2answers
39 views

How run Linux application from a mounted Windows disk?

I have dual-boot operating system, Ubuntu and Windows 7. The problem is I can't install some Linux application on my Linux because considering the disk space. I always regret to myself why I allocated ...
2
votes
2answers
37 views

link to an executable and remove some parameters

I currently am using Xamarin Studio, which has a bug in this version. It adds 2 parameters to an executable, which causes the output to flood with error messages, slowing down the build time from a ...
1
vote
0answers
56 views

No such file or Directory, even if file present and executable [duplicate]

I have two machines, and I have installed the exact same packages on both machines. On one machine everything is working perfectly fine. But on another machine, there is at least one file where its ...
2
votes
1answer
81 views

*.desktop nor symlink works (just for this one file) - Linux Mint 17.2 Cinnamon

I have this desktop entry: [Desktop Entry] Name=dummy Type=Application Terminal=false Icon=/home/xyz/Software/Test/ico.png Exec= /home/xyz/Software/Test/start which is supposed to execute file ...
5
votes
0answers
56 views

Why does OS X `install` errors on redirected input when the same version of `install` on linux works fine?

I would like to use install command in order to create a new executable file with pre-populated content (e.g. with single pwd command in it). So I've extended this example which creates a new empty ...
0
votes
1answer
49 views

executable bit on files created by vim

Is there any setting for vim create new files with full permissions? that is falling just under the umask restrictions, and only on files created by vim. It shouldn't modify the bits of an already ...
1
vote
0answers
63 views

A program doesn't work when invoked through a symbolic link

I have an executable paraview in the directory ~/software/Para/bin/ and I want to create a soft link in my home directory. I have tried like this but could not succeed. sudo ln -s ...
0
votes
1answer
31 views

Is my compilation false?

I thought my compliation was okay because no errors were printed out, yet when I try to run the executable, he tells me that it's unreachable... coppan12@b048-08:~$ gcc -Wall prog.c -o prog ...
2
votes
1answer
86 views

VS Code not working on Elementary OS

I have downloaded VS Code on Elementary OS, and I followed the setup instruction of Setting up Visual Studio Code on linux. The executable file "code" seems to be unknown, it is not opening, Any ...
6
votes
2answers
61 views

direct execution of python scripts

I have noticed that sometimes python scripts are not being started directly, ie /foo/bar.py, but rather from a shell script, which does nothing else than /usr/bin/python -O /foo/bar.py $@ One such ...
1
vote
1answer
47 views

Make a command to remove NetworkManager connections

I’m working in a manufacturing company (small one) and one of our clients required a test using a Linux (Ubuntu) computer, we are testing some wi-fi modules. the test is simple. beforehand: Powering ...
1
vote
2answers
160 views

How to use ln -s to create a command line shortcut?

I have an sh file that I would like to be able to open from the terminal at any time. I would like to type "studio" into the terminal, and have android studio open I recall using ln -s to do this, ...
10
votes
2answers
670 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
86 views

How to use BlueZ tools? [closed]

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
24 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. ...
34
votes
2answers
874 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
47 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
608 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
221 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
113 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
49 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
63 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
121 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 seems to indicate that ...
0
votes
1answer
463 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
77 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
137 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
40 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
279 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
42 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
116 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
80 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
645 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 ...