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
0 votes
0 answers
12 views

Can an AppImage run from NTFS drive or NFS network share?

I'm on Ubuntu 20.04, and I just saw something that I was never aware of so far. I wanted to get and https://github.com/mifi/lossless-cut; however, I do not have space on my primary ext4 formatted disk ...
  • 440
1 vote
1 answer
65 views

Temporary failure in name resolution in Python script running during boot or on shutdown

I wrote a Python script which sends any message via Telegram: #!/opt/anaconda3/bin/python import asyncio import telegram import os import sys async def main(): bot = telegram.Bot(os.environ[&...
  • 2,957
0 votes
1 answer
39 views

Does a user need executable permissions to be able to run du (disk usage)? [duplicate]

I am observing the following behaviour, and want to know if it is expected. I am trying to run disk usage ( du ) as user2 on a directory test_directory which is owned by user1. If I change the ...
  • 174
0 votes
1 answer
78 views

./<filename> No such file or directory

I'm trying to run a binary. But when I'm trying to run the file I'm facing the following error. pegasus@pegasus:~/Documents/Courses/heaplab-main/house_of_force$ ./house_of_force bash: ./...
5 votes
1 answer
212 views

Is there such a thing as an "executable directory"?

In MacOS you can name a folder with the suffix .app and it will be launchable from the GUI as an application based on an internal folder structure convention. Does such a thing exist in Linux? Can I, ...
0 votes
2 answers
118 views

Can process execute new program without the kernel knowing?

Can process execute new program without the kernel knowing? Usually, when the program is executing kernel gives to it its own process after receiving the syscall (such as exec() or fork()). In this ...
0 votes
0 answers
27 views

Running non-executable in Raspbian OS for Raspberry Pi in menu, can't find terminal

I have installed Fern wifi cracker, it's a python file called "execute.py", I opened the "Main Menu Editor" app, that lets you add apps in the menu bar on the top of the screen. I ...
  • 1
0 votes
0 answers
49 views

How should I properly measure running time of a program?

I'm trying to measure performance of two implementations of a program (e.g progv1 and progv2 that do the same thing) using the time command, however not only they differ, but if I run time progv1 10 ...
1 vote
0 answers
46 views

Unable to execute file.exe with wine 4.0.4 in HPC

I have a .exe file that I need to run in HPC and I am not sure how to do this. I tried using wine-4.0.4 as follow but I get the following chmod a+x Rtools35.exe ./Rtools35.exe wine: Bad EXE format ...
  • 111
1 vote
1 answer
102 views

Is it possible to load up a binary into ram, without executing it?

Like I will use google chrome whenever I use linux (most probably) But I don't want it to auto start when ever I open it. I could open it manually, but I have HDD so it is pain to load for the first ...
1 vote
0 answers
809 views

Real meaning on "ELF 64-bit LSB shared object"

How can ELF 64-bit LSB shared object be executable that is readilt executed/launched right away, isn't it opposing the word terms "shared object" (Windows equivalent to dynamic link) ?
user avatar
2 votes
3 answers
96 views

Why does my executable not run from a bash script called through udev?

I have an executable compiled from my code. I am trying to run this executable when I insert a serial device into my Raspberry Pi Zero W using udev. However, for some reason the executable will not ...
  • 31
0 votes
0 answers
19 views

I was trying to run clang file [duplicate]

I am new to Kali Linux i was trying to run clang file which i did but a a.out file appears what to do next? zsh: no such file in directory: /a.out I have trying to do it so many time please help
  • 1
1 vote
0 answers
26 views

What happens if a running executable can no longer load its code/data pages?

This is under the assumption that the binary is large enough that not all pages were loaded into memory at the start of execution. What would happen if the underlying file system suddenly disappears (...
9 votes
4 answers
1k views

Executable vs Library in Bash Script

When reading over Google's shell style guide, I found the following line that confused me a little: "Executables should have no extension (strongly preferred) or a .sh extension. Libraries must ...
2 votes
2 answers
386 views

Give executable permissions to binary files on a USB

I have a desktop application that provides the user with a tarball (.tar.gz) that they can unpack to find the binary that can be run with executable permissions which starts the overall program. This ...
  • 5,211
0 votes
1 answer
779 views

ssh to execute remote command under interactive shell

Very similar with Run a command in an interactive shell with ssh after sourcing .bashrc, yet the answer there doesn't work for me. I want to to execute remote command via ssh under the full ...
  • 997
1 vote
2 answers
591 views

Creating a systemd service in ubuntu that can be started/stopped

I have build a server that ships in executable format, and I want to register it as a service that I can start/stop/restart. I have read the following questions and many others like it > How can I ...
  • 133
0 votes
1 answer
127 views

Files get executable when copied

So I just bought a new Samsung T7 Portable SSD. I initially intended to format it to exFAT, for use with both Windows, MacOS and Linux, but upon inspection, the disk comes with a default file system ...
1 vote
1 answer
86 views

Is "running a folder" possible in Linux?

Is there a philosophy behind running a folder as an executable in linux? user@node main % ls -lash ./bin total 0 0 drwxrwxrwx 2 user staff 64B May 23 21:04 . 0 drwxr-xr-x 6 user staff 192B ...
0 votes
1 answer
130 views

Cannot run .exe app from virtual machine

I am trying to run the .exe of an app I have downloaded from the Apple store onto my virtual machine. However, every time I run the file, I get the following error: cannot execute binary file: Exec ...
0 votes
2 answers
56 views

how to block the double execution of the same script in the same directory

I have created a .sh executable file that generates several files in the working directory/folder that are used by the same script. If it is run twice in the same folder it would be a mess because the ...
  • 1
0 votes
1 answer
487 views

Why would I give the execute permission for txt file (non-script) file

In this article we see x permission is added to myfile.txt: mode of `myfile.txt' changed to 0751 (rwxr-x--x) What is execute permission in the context of non-script file? When would I need ...
1 vote
0 answers
112 views

Get Linux Executable Signing Certificate Information

I wanted to know if there was a way (some sort of library that I'm unaware of) that gets the signing certificate details of an executable. I know it's possible to sign a binary using openssl but how ...
0 votes
1 answer
57 views

Unable to exec programs, parent directory symbolic link, btrfs mdadm drive

I'm not sure what to try next to resolve this issue. ~ 🌝 cat /etc/fstab # /dev/sdg1 /mnt/d/ ntfs noatime,nodiratime,users,noauto,x-systemd.automount,autodefrag 0 0 /dev/md127 /mnt/d btrfs ...
  • 137
0 votes
1 answer
336 views

Reasonable way to customize ( change ) an executable program's command ( name ) , in terminal

Background Using xfce4-terminal as an example, I want to run the program by just typing term. When I type which xfce4-terminal it returns /usr/bin/xfce4-terminal. So, I created a symbolic link: sudo ...
  • 411
1 vote
1 answer
853 views

How to Extract Icons from Executable File in Linux

I'm not talking about a Windows EXE. I mean an actual Linux executable file. At first, I've been wondering whether Linux executables even have embedded icons, and it seems as though they do, because ...
  • 121
1 vote
0 answers
41 views

Empty executables after creating bind mount

I've created a bind mount in /tmp/test which I then use to establish a chroot jail. For example: mount --bind -o ro /usr/bin/ /tmp/test chroot /tmp/test /some_executable This seems to work fine - most ...
0 votes
1 answer
54 views

Does the regex engine have an associated executable?

I'm working with a tool that uses a whitelist to allow certain commands to be executed. The whitelist works using file paths like so: command1=/bin/echo command2=/bin/sed ... The problem is commands ...
0 votes
1 answer
116 views

gdrive not working on Fedora 35

I would like to access my cloud data on Google Drive from terminal, so I have downloaded gdrive from this source; I have selected gdrive_2.1.1_linux_amd64.tar.gz since I am on Fedora 35 with a 64 bit ...
  • 173
0 votes
2 answers
213 views

Is it possible to show when an executable was run for the last time?

Note that the FS is mounted with the relatime option (thus the recent last access time is not shown). Is there a way to see when an executable (ELF 64-bit LSB executable) was run for the last time? ...
  • 616
0 votes
1 answer
680 views

Dumping virtual memory addresses of an executable from /proc/pid/maps

I want to dump the virtual memory addresses of a running executable. This is the command I'm running: ./executable & cat /proc/$(pidof executable)/maps > maps.dump, and this is the error I get: ...
  • 1
0 votes
2 answers
905 views

Compile a shell script to an executable binary with make

I know shc can convert the shell script to binary, but there is obvious and famous tool to decrypt it. So, I want to find another way to do this. I've heard that make can also convert a shell script ...
  • 23
0 votes
1 answer
170 views

Allow user to run nonpermissive commands in shell script (KSH)

I have a ksh script I am developing for work. (I am on the newer side to shell-scripting) I have root access but the future-users of this script will not. Say the other user is named User1. Within the ...
0 votes
3 answers
310 views

Make STDIN executable with shebang

I have a program to list database files. It is called direkly from the shell like db filename to list the whole file, or like db 'filename :: conditions' to list only selected elements ... Another ...
  • 133
1 vote
1 answer
42 views

is there a reason to revoke write permission for executables in /usr/bin

I have encountered a package which installs its binaries with permission 555 instead of usual 755 in /usr/bin, i.e. prohibiting writing for everyone. I do not understand the reason for doing so... Can ...
  • 2,569
1 vote
1 answer
439 views

VNC / Ubuntu 18.04 / xfce4: can't launch executables with a GUI

I'm using VNC remote desktop to visually access a remote Ubuntu 18.04 machine with a xfce4 GUI. VNC works fine. SSH shell works fine. The 2 programs with a graphic UI I'd like to launch are nedit (a ...
  • 111
7 votes
2 answers
1k views

Equivalent of executing a file (with shebang line) by entering its path?

Say I have a file hello: #!/bin/sh echo "Hello World!" Provided the executable bit is set on that file, I can execute it by entering its path on the prompt: $ ./hello Hello World! Is ...
1 vote
1 answer
291 views

OpenAL error: 40964 when running an executable

I recently installed the missing libraries for an executable, but I have problems when I run it. It doesn't sound and these are the errors I get when I run it from the terminal. OpenAL error: 40964 (...
  • 43
0 votes
0 answers
224 views

Error when I try to run an executable file while loading libz.so.1 library

I can't run the executable file because of the libz.so.1 library. I have already installed the zlib1g_1.2.11.dfsg-1_amd64.deb package, but the error still appears. How can I do to solve this? This is ...
  • 43
0 votes
2 answers
363 views

Log which system executables have been used

I have an Ubuntu-based Dockerfile and I'd like to change it to be based on a minimal Debian or maybe even Alpine. The problem is that I'm relying on a lot of system executables that came preinstalled ...
  • 747
0 votes
1 answer
60 views

Problem running several programs or commands at the same time

I had a problem because I have to execute near 1700 times the same program with different data. That program do several calculations using iterations, and the answer is obtained 5 hours later ...
1 vote
0 answers
414 views

can't uncheck "allow executing file as a program" from txt files

I can't remember how i have made all .txt files on my external hard-drive with NTFS executable in Ubuntu, so that whenever i double-click any .txt file on that disk or open the right-click menu, it ...
  • 121
0 votes
0 answers
163 views

Why I can't open text files when execetue "x" permission is on?

for example I have test_file and I run sudo chmod 775 test_file so now while I'm the owner I can read,write and execute it but with graphical interface it doesn't work, I don't have any error messages ...
  • 193
2 votes
3 answers
569 views

Is there any benefit to grouping similar programs into a single path directory?

I'm setting up prometheus in a web server, and I noticed that each exporter is its own program that must be added to a directory in $PATH. My question is, is there any advantage to making a ...
15 votes
2 answers
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....
  • 564
0 votes
1 answer
119 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 - ...
  • 341
3 votes
1 answer
801 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 ...
  • 43
3 votes
0 answers
555 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 ...
  • 131
2 votes
2 answers
843 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 ...
  • 31

1
2 3 4 5
12