Questions tagged [executable]

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.

Filter by
Sorted by
Tagged with
15
votes
2answers
2k views

bash: ./*.exe: No such file or directory with executables named *.exe

Looks like I cannot run any normal linux binaries if their name ends with .exe, any idea why? $ cp /bin/pwd pwd $ ./pwd /home/premek This is ok. But... $ cp /bin/pwd pwd.exe $ ./pwd.exe bash: ./pwd....
0
votes
1answer
27 views

How can I make a specific piece of code portable for running on different systems through a pipe?

Quite often, when I search a solution to a problem, I end up finding lines of code like the following: curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python - ...
2
votes
1answer
39 views

How to create a desktop entry for .jar files?

I created a desktop entry and moved it to ~/.local/share/applications, but it doesn't execute when I click on it from the start menu. This is my .desktop file: [Desktop Entry] Type=Application ...
0
votes
0answers
23 views

How to add library to executable file and view it with ldd command?

I want to know how to add library to executable file and view it with ldd command?
2
votes
0answers
78 views

“No such file or directory” but the binary exist

I recently installed an dynamic binary translation program to run x86_64 binary on my ARMv8 server. After I uninstall the DBT tool, I found some weird error messages and it is very comfusing. A little ...
2
votes
2answers
211 views

Find all executable files excluding certain directories

I'm looking to find all executable files that are NOT in my $PATH. Currently I'm doing this find / \( -path "/opt" -prune -o -path "/var" -prune -o -path "/bin" -prune -o ...
0
votes
3answers
135 views

Do 'executable' file systems exist?

Are there any Unix/Linux filesystems that do the following? if the file is executable, return a virtual file containing the stdout generated by executing it (it would have to be non-writable, I ...
10
votes
1answer
2k views

Accidentally ran chmod +x /* - How bad did I just mess up?

I wanted to mark all of the files in the directory I was in as executable, and I ran chmod +x /* because I thought that was the command to mark all the files in the directory you were currently in as ...
4
votes
4answers
147 views

I want to terminate a python script if it doesn’t output anything to the terminal in 2 min

Here's my current bash which is just a loop while true ; do python3 /Users/Name/Desktop/pythoncode.py done I want to terminate pythoncode.py if it doesn’t output anything to the terminal in 2 ...
0
votes
0answers
12 views

How to set timeout [duplicate]

I am using a bash executable to run a python script in a loop Sometimes the browser (run by the python script) will stop loading and stop working for hours until I manually come and close the window ...
0
votes
1answer
142 views

How to run external executables within firejail

My machine is home desktop(personal) running Debian Buster with i3 window manager. I recently installed firejail with apt install firejail* firetools and also downloaded the new Firefox 83 browser ...
1
vote
1answer
684 views

Fish: The file is not executable by this user

I made fish function in ~/.config/fish/functions/confgit.fish: function confgit /home/john/Projects/confgit $argv end But when I run this function it just says: fish: The file “/home/john/...
0
votes
1answer
110 views

Recursively setting all files in a directory as non-executable [duplicate]

I have an external hard-drive formatted as NTFS which I use to back-up and store files from both Linux and Windows (as I am dual-booting). I recently bought a new computer and installed Linux Mint 20 ...
0
votes
0answers
52 views

Compiling C on Manjaro

First of all, I'm pretty new to the whole Linux world so sorry if this question may seem stupid. I'm currently studying informatics and telecommunications, I tried Linux for the first time about 2 ...
0
votes
1answer
58 views

Unix Executable to the directory it is housed in Mac

I am trying to make an executable script on Mac where it makes the directory it is housed in the current directory (cd) and then runs some more commands. I started with a find command however in the ...
0
votes
0answers
55 views

Blacklist/whitelist applications in Linux

I would like to learn about solutions/alternatives for managing execution access to applications in Linux-based systems (specifically Fedora flavours). I already researched into possibilities like ...
0
votes
0answers
50 views

No such file or directory but the file is clearly there

I run my make file and get an output E1code3 which I then try to execute by typing ./E1code3 I get the error message no such file or directroy but it is clearly there! I have tried to change name to ...
0
votes
1answer
1k views

Why am I receiving the “zsh: exec format error: ./metal” error?

I am attempting to run a Unix executable program (Metal; https://genome.sph.umich.edu/wiki/METAL_Quick_Start) from the terminal. I continue to get the following error: zsh: exec format error. I have ...
1
vote
0answers
16 views

How to produce ANOM_EXEC event in auditd journal?

I am using Ubuntu 16, and want to produce ANOM_EXEC event in auditd journal, like such i found in internet: type=ANOM_EXEC msg=audit(1222174623.498:608): user pid=12965 uid=1 auid=2 ses=1 msg='op=PAM:...
1
vote
1answer
318 views

Is it possible to have systemd open a program running in a clean terminal automatically after startup?

First off apologies for the simple question- there is more to it that I will explain below. I am new to Linux style systems and evidently I have A LOT to learn. With that said... My System I am ...
0
votes
1answer
211 views

Convert folder to .bin-File

I just downloaded a bin file for my new application. The problem is that I had to change some config files, and for that I used 7-zip to unpack the files. I changed the files the way I want to have ...
1
vote
0answers
44 views

.exe file with hardware key not running in Linux

I am running a simulation software in Windows with an .exe file and inputs and I also use a usb stick (hardware key) to run the simulation. I want to do the same in Linux. I downloaded wine and gave ...
4
votes
0answers
231 views

Linux kernel cannot execute any binary (error -12)

Problem: Memory Allocation Problem my platform: SOC = STM32H743 (ARMv7E-M | Cortex-M7) Board = Waveshare CoreH7XXI Linux Kernel = 5.8.10 (stable 2020-09-17) initial defconfig file = stm32_defconfig ...
0
votes
1answer
65 views

What is “shared executables”?

Stephen Kitt wrote in https://unix.stackexchange.com/a/448943/674 ld.so is a shared ELF object, but it doesn’t require an interpreter (it has no .interp entry); this is typical of libraries (shared ...
0
votes
1answer
61 views

stdout equivalent in pure binary?

Heyo all! I know this sounds like a super ambiguous question, but I think it's relevant. First, let me define some terms. Binary In this question, meaning the literal 1s and 0s that the computer ...
2
votes
1answer
271 views

kernel cannot execute binaries (error -8)

my platform: SOC = STM32H743 (ARMv7E-M | Cortex-M7) Board = Waveshare CoreH7XXI Linux Kernel = 5.8.10 (stable 2020-09-17) initial defconfig file = stm32_defconfig rootfs = built using busybox | ...
0
votes
0answers
9 views

Is it possible to get pipenv shell to source environment vars (secrets) with an executable?

I'm wondering if it's possible when executing pipenv shell to produce a shell with env vars that are sourced from some executable like source secrets.py or source secrets.sh I'm trying to avoid the ...
0
votes
1answer
44 views

Check if a user given random word is an executable linux command or not?

Taking a random word as input from the user, can anyone suggest a logic in shell scripting to check if any permutation of that word is actually an executable command or not?
0
votes
0answers
45 views

Executable does not work if run outside its folder

I have an already structured SDK folder where I have my project. Program works as expected if I do: cd /home/user/Documents/Camera/ProjectCamera/linux64/proj make cd /home/user/Documents/Camera/...
1
vote
1answer
264 views

Make every file in a directory executable by default?

I have a directory in which I am storing all my shell scripts and I would like new files to be made executable by default so that I don't have to go chmod u+x [file] everytime. Is there a way to make ...
0
votes
1answer
264 views

Executable binaries labelled as shared library files

After compiling software from source code, I can usually launch the compiled binary by double-clicking on it. Recently however, most of my compiled binaries are not responding to double-click, even if ...
0
votes
1answer
127 views

Automatically offer to set execute permission on shell scripts

I use shell scripts a lot. Practically every time, I create the script and try to run it, and get the permission error because I forgot to set +x. This seems like a huge hassle, is there a way to make ...
0
votes
2answers
1k views

Preserve file permissions and symlinks in archive with 7-Zip

I have a directory test with three files, ls -l test: total 8 -rw-r--r-- 1 mb mb 16 Jul 25 11:12 regular_file -rwxr-xr-x 1 mb mb 19 Jul 25 11:02 script.sh lrwxrwxrwx 1 mb mb 12 Jul 25 11:14 symlink -&...
0
votes
1answer
33 views

Enter text into executable file immediately after it's run

I have an executable file file that I am running by typing ./file into the terminal. When the program runs, I have to type in the text "code". However, the time taken to type it, or paste it ...
0
votes
1answer
60 views

What is the difference between executable that requires ```./``` with the one not requiring it?

What is the difference between the following ./executable and executable. Why is it, sometimes, some executable (non-Linux commands) don't require ./? If I have installed an executable through a ...
2
votes
2answers
54 views

monitor IO of a running user's executable file read/write

How to monitor IO of file read/write by a running user executable's, just like Windows Process monitor when being set to file-related monitoring only ?
0
votes
1answer
43 views

C++ exe file won't update(Using Atom & MacOSX Terminal)

I'm using atom to write code in C++. When I compile my code in the terminal using g++ -Wall -std=c++14, it prints and compiles properly in the terminal. Any revisions to my code after the first print ...
1
vote
1answer
42 views

Which binary would be run when we have multiple installations?

I wanted to set gsettings as /usr/bin/gsettings so I created an alias. But I am not sure if that works: $ type gsettings gsettings is aliased to `/usr/bin/gsettings' gsettings is /home/linuxbrew/....
6
votes
3answers
668 views

Executable common files (*.pdf, etc.)

I have a number of files showing up green when I run ls. I understand these are executables, and I understand that one can make a file executable with chmod. But they are .csv and .pdf files. I don't ...
11
votes
3answers
2k views

How are users able to execute a file without permission?

I created a Bash script which echoes "Hello World". I also created a test user, bob, using adduser. Nobody has permission to execute that file as denoted by ls: $ ls -l hello.sh -rw-r--r-- 1 ...
0
votes
2answers
73 views

liballeg.so.4.0: cannot open shared object file: No such file or directory

Its giving me this error when I try to run an executable file. I have tried ./filename in the directory containing it and ln filename secondpath cd secondpath nothing seems to work, I checked that ...
0
votes
1answer
104 views

what is difference between symbolic link file and executable file?

I was exploring the /bin directory. The /bin contains file of two different colours, which according to this answer correspond to: Green indicates executable file Sky blue indicates system link In ...
0
votes
0answers
67 views

unable to execute VBoxManage command in python executable (created with pyinstaller)

OS: Ubuntu 16.04 LTS make an install.py file executable: pyinstaller -w install.py --onefile install.py script: import os VM = os.system('VBoxManage startvm win10 --type headless') if VM == 0: ...
0
votes
0answers
13 views

when run ycsb using Rocksdb, /proc/[pid]/exe link to java. Why exe file link to this file?

When run ycsb workload using Rocksdb(https://github.com/brianfrankcooper/YCSB/tree/master/rocksdb), /proc/[pid]/exe (thread's executable file made by Rocksdb) link(symbolic link) to java executable ...
0
votes
1answer
23 views

Executing a symbolic link yields different results than executing the file to which it points

The context I've downloaded scilab-6.1.0.bin.linux-x86_64.tar.gz from the official website of "Scilab" because I want to be able to use the provided tools. Within the bin directory of the downloaded ...
0
votes
2answers
54 views

How come I can change my PATH to gibberish and still use commands?

The environment variable PATH is the search path for executable commands, so I thought changing the PATH to something that doesn't exist (for instance, export PATH=blah) would make me unable to use ...
0
votes
3answers
233 views

alias to run dot slash (./) on a file without cd using bash

I have a directory like this: /home/user/Project/ Inside Project and after many sub directories, I have a script names ninja that needs to be run with ./ninja. In other words: /home/user/Project/...
5
votes
1answer
11k views

Is it possible to run x86 executable on ARM?

I'm trying to install Navicat which is an x86-64 binary onto my aarch64 machine, which results in "cannot execute binary file: Exec format error" Here's the result of running file on the executable: ...
0
votes
3answers
287 views

File definitely exists. Get “No such file or directory” when trying to run it

This is on Arch Linux. Take a look at this: [saint-llama@hubs bin]$ lsattr --------------e----- ./install_fnp.sh --------------e----- ./toolkitinstall.sh --------------e----- ./FNPLicensingService [...
2
votes
3answers
488 views

Why is an executable called a “text file”?

In the course of updating software today I got the error "Text file busy", which got me wondering: Why is a Unix (or Linux) executable called a "text" file when that seems so counterintuitive and ...

1
2 3 4 5
11