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
0answers
18 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
42 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
83 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
64 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
36 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
64 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
68 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
26 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
38 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%...
-1
votes
1answer
5k 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
163 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
19 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
33 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('...
0
votes
0answers
22 views

is it possible execute any command with McAfee ePolicy Orchestrator on linux

I want to know ePO (McAfee ePolicy Orchestrator) can execute any command on a client that has a MacAfee agent installed? such as rm -f filename or start and stop service by systemctl and etc... the ...
2
votes
1answer
101 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
57 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
38 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
39 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
55 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
77 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
vote
0answers
37 views

Run bash script as application, such as a Desktop icon does [duplicate]

What I can I do to execute bash script as application like open the "Desktop icon". Any idea for where can I start?
12
votes
1answer
2k views

Different methods to run a non-nixos executable on Nixos

What are the different methods to run a non-nixos executable on NixOs? I'd like to see also the manual methods.
0
votes
1answer
292 views

cannot execute elastix binary file

I am trying to run a binary file (./elastix) in the terminal but I am getting the following error /Users/tony/Desktop/elastix-4.9/bin/elastix: cannot execute binary file When I type the command file ...
0
votes
1answer
461 views

Running an executable off of a usb drive

I have an executable on my usb drive. I cd to the directory, ./app yields permission denied. So I did chmod u+x app. Then, ./app. But still, permission denied.! Then I read something here: That ...
0
votes
1answer
128 views

How to give permissions for all users to execute a program installed by sudoers?

I installed a Perl program with many external dependencies in /opt/Soft (ubuntu 18 ) using sudo su at first step. Once installed, I exit the "sudo su" mode I could not anymore execute the program as a ...
2
votes
1answer
105 views

Binary executable file with write permission get READONLY from vim

First I know that use vim to write a binary executable program is not recommended. So, I don't want to talk about its rationality here. I have a binary program, with permission 755(owner is root), so ...
0
votes
0answers
61 views

Linux - Upgrading the BIOS using an EXE

When a bios update is only available via .exe, what's the easiest way to update the bios on a computer running Linux exclusively? Many times I've had to install Windows 10 onto a computer just long ...
0
votes
1answer
144 views

What types of executable files exist on Linux?

For example, if I do [OP@localhost executable]$ cat garbage lalala trololol [OP@localhost executable]$ chmod +x garbage [OP@localhost executable]$ ./garbage ./garbage: line 1: lalala: command not ...
13
votes
1answer
2k views

Executable file named 'test' is in $PATH but won't run

I have a file in $HOME/bin (before you ask, yes, it is in my path) called test which I've confirmed can be executed fine when I run it with the full path to the file. However, I get a really weird ...
1
vote
0answers
42 views

Make programs in /opt searchable from launcher

I've installed Telegram and I've the folder "tsetup.1.3.10", where executable files reside, into Download folder. I don't want my programs in Download folder, so I moved they in /opt folder. But, ...
0
votes
1answer
440 views

lmgrd: No such file or directory

While there are comparable questions out there, I have not found a solution for this specific circumstance. And I admit that this particular question may be appropriate to only me; however, the ...
15
votes
8answers
5k views

Linux shell script: Run a program only if it exists, ignore it if it does not exist

I am programming a Linux shell script that will print status banners during its execution only if the proper tool, say figlet, is installed (this is: reachable on system path). Example: #!/usr/bin/...
1
vote
1answer
148 views

Desktop Entry Requires “bash” in Exec Value

I recently began messing with Desktop Entries in order to run some scripts at Gnome startup. I've read through some freedesktop documentation, as well as this post on creating a startup script. I ...
0
votes
1answer
127 views

Stopped process reasons?

I'm running a program using a batch file and it keep giving me this ERROR: STOPPED PROCESS I've noticed that the program stops each time in a place a little after the place he stopped the last ...
3
votes
1answer
237 views

Are .text sections shared between loaded ELF executables?

If one program, for example grep, is curretly running, and a user executes another instance, do the two instances share the read-only .text sections between them to save memory? Would the sharing of ...
1
vote
1answer
50 views

Linux's command line behaviour (Ubunto/Deb) in running an executable file [duplicate]

@user-123:~$ Downloads/execfile-3.4/execfile @user-123:~$ @user-123:~$ cd Downloads/execfileparentdir-3.4/ @user-123:~/Downloads/execfileparentdir-3.4$ execfile execfile: command not found @user-123:~...
0
votes
2answers
354 views

Why does libarchive's bsdtar's unzip throw away the permission bits when reading a ZIP-archive from stdin, but not directly?

I encountered that the command bsdtar from the package libarchive (under Arch Linux, at least) does throw away executable bits of files in .zip-archives when reading from stdin, but not when directly ...
0
votes
1answer
475 views

How to create wrapper script for python so that sys.executable becomes equal to name of this script?

I need to run Python interpreter with custom parameters and custom environment. Let's say I create a bash script which exports required variables and calls /usr/bin/python3 with required parameters. ...
1
vote
1answer
717 views

Is it possible to read a file you only have executable permissions to on Linux through Bash?

I was wondering if it was possible to somehow get the contents of a file which you do not have read access to. I first attempted trying to get around the permissions using the inode number of the file,...
1
vote
1answer
234 views

Running an executable without sudo

I have a small function in my .zshrc. It creates a command to search for and run an executable file, that may or may not exist, in the current directory, or a parent directory somewhere up the current ...
1
vote
1answer
2k views

Building shared library which is executable and linkable using Cmake

How to create an executable shared-library using cmake? Something like: libtest.so :: linkable shared library libtest.so :: executable too Note: gcc/g++ options are known to achieve the ...
-2
votes
1answer
224 views

Space after filename (Linux) [closed]

Whats different "name.txt" vs "name.txt " in Linux? If I rename name.bin to name.txt - is normal and file doesn't executable. If I rename name.bin to file.txt (with space after filename) - file ...
0
votes
1answer
218 views

Lua standalone with external binary program

I am writing a small program to us in LuaLaTex. The purpose of it is to produce an qr-code with a given uuid, the qr-code is printed on the page and the uuid is stored in the pdf's meta-data. ...
4
votes
3answers
129 views

In what format does piped output get sent and received from one command/program to another? [duplicate]

When a command is piped to another command in what way or in what format does the piped output exist/get sent? Is it a temporary file? Is it a string? And how does the command that receives the piped ...
0
votes
1answer
40 views

Run combined hexo command from desktop entry

I have Debian 9.5 with xfce and hexo: 3.7.1 The question is about throttle my script called "draft": s@lokal:~$ sudo cat /usr/local/bin/draft #!/bin/bash killall hexo cd /home/s/Dropbox/blog hexo ...
0
votes
2answers
97 views

Where to store proprietary code and executable scripts? [closed]

I have Python code that is run using a bash script. I want non-sudo users to be able to run it without making the Python code readable. What is the recommended pattern? Two ways I considered: Put ...
1
vote
1answer
42 views

Is there a way to restore an uninstalled executable from bin?

I tried upgrading pip3 using su -c 'pip3 install' --upgrade pip' because I got errors and it failed when trying to upgrade it as a normal user. This removed the pre-installed pip from /usr/bin and ...
0
votes
1answer
270 views

Requirements to run LAXUNIX.SH - LaunchAnywhere (tm) version 14.0

I am trying to install a program. After installation was done, I tried to click on the installed file and I got this: LAXUNIX.SH - LaunchAnywhere (tm) version 14.0 To run this script you will need ...
3
votes
1answer
2k views

Make binary executable available for all user

How to make a binary file available for all linux(Ubuntu) user. eg: When we install the golang using apt install golang-go the go executable is available for all user. Where will they add the ...
3
votes
2answers
2k views

Is there a way to embed an executable binary in a shell script without extra tools?

I'm looking for a way to have an executable binary hardwired into a script. Something like this: #!/bin/bash ...some shell code execute binary: >>> binary code ......

1
2 3 4 5
10