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
1answer
21 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
40 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
147 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 ...
-3
votes
0answers
20 views

Windows Executable Support

FreeDOS can run every MS DOS application, right? So in theory, any Linux or Unix operating system can make a support for running EVERY application. From games to UWP apps. I know WINE exist but it can'...
0
votes
1answer
40 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
49 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
141 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
5 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
36 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
39 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
44 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
40 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
42 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
1answer
149 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
27 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
56 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
43 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
27 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
38 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
571 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
37 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
61 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
37 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
9 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
20 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
45 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
132 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/...
4
votes
2answers
3k 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
123 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
4answers
298 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 ...
0
votes
0answers
35 views

Make Python3 script callable from everywhere without making it an executable

I've got a folder: /root/Desktop/commands/ This folder contains many Python scripts that should be callable from anywhere from the terminal. How can I make it, that I say once, that all scripts in ...
0
votes
0answers
1k views

/usr/bin/fg: line 4: fg: no job control

I have faced the problem mentioned above when I call sleep 100 & Background job starts, and then I pause the process by: kill -STOP <PID> Then if I just say fg sleep It brings the job ...
0
votes
1answer
243 views

Why are my PNGs executable?

I noticed that most of my image files are green when the ls command is used but some of them look purple. Apparently .png and .jpg files are supposed to look Magenta while executable files are Green. ...
3
votes
1answer
77 views

How to fail on executing zero byte file?

If I have zero byte file and it is executable, it will just do nothing. Can I fail on such files, i.e. return some error message and/or return non-zero exit code?
0
votes
1answer
40 views

What is the $PATH given to cron jobs? [duplicate]

I have a process that runs on a @reboot cron job. The process needs to run an executable file. I have noticed that I have to put the executable in /usr/bin/. I can't just put it in a folder in my $...
0
votes
2answers
129 views

Can superuser write a file having 000 access permissions?

I know that a root user can read a file even if the access permissions are all set to 0 but i don't understand about the write and execute permissions in specific. Can a superuser write and execute a ...
0
votes
0answers
187 views

sh -c and exec works in prompt but not in Shebang script

I try to execute Xsession logout via shell script: xfce4-session-logout --logout The above option (or -l) allows logout without confirmation. It works fine in bash prompt, but instead of sh, I have ...
0
votes
0answers
49 views

Executing a Program with input

I would like to be able to run a program and then feed that program some information all in one line on startup. Suppose I am in the working directory of the executable (sage), I can run ./sage -c "...
0
votes
1answer
121 views

How I can these .vcf files to txt at the same time

I have 136 .vcf files in a folder; I want to extract some information from each of them and write the output in a .txt file like below [fi1d18@cyan01 snp]$ bcftools query -f '%CHROM\t%POS\t%REF\t%...
0
votes
1answer
12k views

Executing “Bad CPU type” executables in 10.15.x

I'm trying to execute a compiled Lazarus file which was working on macOS 10.14.x. After updating to 10.15, I started to get an error, "Bad CPU type in executable", which as far as I understand means ...
1
vote
0answers
434 views

No such file or directory error when trying to run an executable

I'm currently running Alpine Linux with XFCE. When I try to run an executable, in this case the "Tox" app .appimage file, like this ./qTox-v1.16.3.x86_64.AppImage It returns this error bash: ./qTox-...
0
votes
0answers
36 views

How is it possible to call CwRsync.exe via a Bash Script with variables and arguments?

This is the commandline currently used to call Rsync that's part of Cygwin 64 install. rsync -aqHPR $CygSrcRoot/./$FolA1 $CygSrcRoot/./iMazing.Versions/Versions/$FolA1 $CygDstRoot/$DstCountFol --...
0
votes
1answer
36 views

Are there drawbacks (security or otherwise) to using 'su <user>' into a lesser-priveleged user to start a web application?

My goal is to manage the startup of a number of applications with an application executed by a user with elevated permissions. The plan is to have the startup manager (a node.js script using require('...
2
votes
1answer
164 views

Unable to execute file with superuser priviliges

I am trying to install the VMware client on my work computer, which is running CentOS 7 and on which I have superuser privileges. When I run the command sudo ./VMware-Horizon-Client-5.2.0-14604769....
1
vote
3answers
63 views

How to ship files as executable? (no git)

I see there is a question similar to this but that answer relates to Git, which I am not using here. I often make small scripts that I send to others with very limited command-line skills to run. Is ...
2
votes
0answers
40 views

Testing whether an executable can be run on Linux? [duplicate]

In my Ubuntu packages, I install a hook with a one liner script: if test -x /usr/bin/snapsignal then /usr/bin/snapsignal "snapmanagerdaemon/DPKGUPDATE hook_action=\"$DPKG_HOOK_ACTION\"" fi (...
0
votes
2answers
76 views

Prevent bashscript argument being transferred to a child sourced script

I source a bashscript (Child) inside another bashscript (Parent), somewhere in the middle of Parent. The argument passed to Parent when executing it gets passed to the Child. How can I prevent this ...
0
votes
2answers
77 views

Must shell scripts be executable?

Looking at the files in my /etc/profile.d directory: cwellsx@DESKTOP-R6KRF36:/etc/profile.d$ ls -l total 32 -rw-r--r-- 1 root root 96 Aug 20 2018 01-locale-fix.sh -rw-r--r-- 1 root root 1557 Dec ...
1
vote
0answers
85 views

Is the a.out executable format still in use?

I'm sure that in light of the recent deprecation of the a.out format on Linux quite a few people have heard about the ancient executable format. I'm creating a loader for the format just in case ...

1
2 3 4 5
10