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.
2
votes
2answers
27 views
Is there a way to determine what packages or libraries should be loaded to support an executable?
There is an executable I want to install on a computer that I can't recompile that wasn't built as a package, and I want to download the libraries it requires to run them.
Below is part of the output ...
1
vote
1answer
33 views
“No such file or directory” when executing a cross-compiled program on a Raspberry Pi
I recently bought a Raspberry Pi. I already have configured it, and I install a cross compiler for arm on my desktop (amd64). I compiled a simple "hello world" program and then I copy it from my ...
0
votes
3answers
64 views
I get “bash: …: No such file or directory” even though the executable is there [duplicate]
Operating system: Lubuntu 13.10, 64-bit.
I installed the Seamonkey browser from http://www.seamonkey-project.org/ following the instructions quoted below from ...
1
vote
1answer
23 views
Executable not visible when run with sudo [duplicate]
Platform: Ubuntu 10.04 VM running out of VirtualBox
File details:
-rwxr-x--- 1 myuser myuser 123 2013-10-31 16:10 myscript.sh
The executable is visible in the directory:
>type myscript.sh
...
2
votes
2answers
38 views
lsof - debug the output information
I was going through the questions of this site. In this particular question, I see the command lsof being used to list the files that are open for a particular user. I ran the below command in my ...
0
votes
1answer
434 views
How to install the real Thunderbird on Debian wheezy?
I have Crunchbang 64 bit, a debian wheezy distro. Debian have a rebranded Firefox called Iceweasel and a rebranded Thunderbird called Icedove. But I don't want any of them.
I was able to install the ...
2
votes
4answers
117 views
Running python script from Linux Terminal
I have downloaded this script named, pyAES.py and put it in a folder name codes, inside a Desktop directory of my Linux,
According to this example,
...
4
votes
1answer
96 views
What is the difference in these two bash environments?
I notice that with bash scripts, some people use a different
shebang to the one that I'm used to putting at the top of my own.
Can someone simplify the difference between these two? I use the ...
1
vote
1answer
234 views
“No such file or directory” on files that exist? [duplicate]
In the past day, I've found at least 4 binaries that say "bin-name: No such file or directory" when I try to run them. Even if I type part of the name and tab complete it, I get the same error. I'm on ...
1
vote
1answer
39 views
Compiled, can't access with sudo
So I compiled FFmpeg from this guide as a standard user and it works fine as the user I compiled with but if i do sudo ffmpeg the program can't be found. Is it possible to make it accessible by root ...
7
votes
2answers
310 views
Test whether Linux binary is compiled as position independent code
I recently learned that (at least on Fedora and Red Hat Enterprise Linux), executable programs that are compiled as Position Independent Executables (PIE) receive stronger address space randomization ...
2
votes
2answers
49 views
Create a executable for a scheme program with arguments
I have a scheme program which is executed using the command
; (primes<= n) to give me all the primes less than n
For example, ; (primes<= 200) gives me all the primes less than 200
How do I ...
16
votes
3answers
620 views
Does the shebang determine the shell which runs the script?
This may be a silly question, but I ask it still. If I have declared a shebang
#!/bin/bash
in the beginning of my_shell_script.sh, so do I always have to invoke this script using bash
...
1
vote
1answer
28 views
Can executables from a mounted distro's disk be run without booting into it?
This question, "Figuring out what OS is on which partition?", got me into thinking if you could run the executables from a mounted distro without actually having booted into said distro.
The answer ...
1
vote
2answers
70 views
Privileges on Linux?
In Linux, I had created a userid. After creating this, I encountered a problem that the .EXE Files are not opened on simple click. They seem to be not privileged for my user account.
How can I ...
85
votes
5answers
4k views
How to chmod without /usr/bin/chmod?
Today I was told a tale by a Unix trainer, a tale where the root password got leaked to the students, and one of the fellas removed the execute permission from /usr/bin/chmod itself. How do you ...
3
votes
4answers
89 views
Why is that when I download a binary from the web it doesn't have executable permissions set, but when I use gcc to build a binary it does?
For example, if I have the file hello.c which just contains:
int main() {
printf("Hello world");
return 0;
}
and I built it in gcc with gcc hello.c -o hello I can then run ./hello and it ...
0
votes
2answers
86 views
How can I run a linux build on an NTFS drive?
I'm running under Ubuntu but using a shared drive which is NTFS formatted. I've got blender sitting in a folder (it's the 2.66RC build with some trivial python customisations.) I'm calling blender ...
2
votes
2answers
70 views
Is there some way to find out if/when an executable was called?
I'm trying to figure out whether AUCTeX is actually calling dvipng when it renders LaTeX previews. While this may not the best way to find this out, one possibility is to check whether the executable ...
2
votes
2answers
82 views
Why can't I run programs extracted from an archive?
Having downloaded archives of Sage, Firefox, and Thunderbird from their respective websites on Trisquel 6.0, neither clicking the appropriate shell script nor executing a command to run the programs ...
0
votes
1answer
55 views
Execute in Place an encrypted ram drive
I have found a few old posts claiming that tmpfs can execute in place. Is this true? If so, how? If not, is there a ram drive alternative?
Can this be done with a ram drive that is encrypted? If ...
0
votes
2answers
77 views
are daemon tmpfs executables copied unencrypted to memory upon execution? (prevent if so?)
When a daemon is executed, is the executable copied to memory?
If so, can it be copied encrypted?
If not, is there a way to prevent the executable from being copied to memory?
The executable is ...
1
vote
1answer
227 views
How to add a program to be indexed by Synapse?
I downloaded the IntelliJ community edition and I'm currently running it by clicking the shell script that is in the folder of IntelliJ
I was wondering how I can make Synapse recognize the idea.sh ...
3
votes
1answer
706 views
“No such file or directory” on an executable, yet file exists and ldd reports all libraries present
ldd xls
linux-gate.so.1 => (0xb77bc000)
libQtGui.so.4 => /usr/lib/i386-linux-gnu/libQtGui.so.4 (0xb6cc2000)
libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xb6c98000)
...
1
vote
4answers
41 views
Ambiguously named executables
It appears that in tcsh if I have ambiguously named executables in two separate folders in the $PATH it directs to the one in the most recently created folder. Am I correct? And is this always true?
...
4
votes
1answer
57 views
Portions of the file Header
I was working through my C programs, I am new to Linux/UNIX development and was having a look around.
I created a simple C program of Hello world and was inspecting the compilation process.
I tried ...
1
vote
2answers
99 views
Shell script execution
I have two shell script files with exactly the same permissions etc.
I can run one of them by just giving its name in the command line but for the other one I should use sh or ./ to run it.
What is ...
2
votes
1answer
31 views
How to change which program is executed by default
Surely this is an easy question, that I just don't know how to search for, but if I have two identically named executable files, one in /usr and one in /usr/local (for example), how can I change which ...
4
votes
2answers
427 views
Specifying a generic interpreter for a program like expect?
I am writing expect script which can be used on mulple operating systems but the problem is
i can't use #!/usr/bin/expect evreywhere so instead i tried to do
#!`which expect`
at the top but it ...
0
votes
5answers
621 views
File extensions and association with programs in linux
In windows we can associate a file's extension with programs.
E.g. a file test.pl can be run by the installed Perl interpreter due to the pl extension.
In linux though it needs #!/usr/bin/perl as the ...
0
votes
3answers
183 views
Find executable files recursively
I have got the directory called Test and a few directories inside it. Both Test and the directories inside it have executable files. I'd like to print them with ls. I'd use this command.
ls -l `find ...
0
votes
2answers
57 views
How many types of architectures and OSes
I am trying to write a script python script that is supposed to run across all linux based OSes. The python script invokes executables of few existing tools(for example pathload and iperf) that I have ...
0
votes
1answer
645 views
What to do with an executable file that simply doesn't execute?
I downloaded the Linux executable for Unetbootin 494, and now I'm trying to run it. As root, I made it executable and attempted to execute it:
chmod +x unetbootin-linux-494
./unetbootin-linux-494
...
0
votes
0answers
22 views
no such file or directory [duplicate]
I have a 64-bit Ubuntu and want to execute a 32-bit FreeRTOS binary. The error message says no such file or directory. The files are there I can read them with ls -l.
1
vote
2answers
225 views
Executable located in location A how to run it in location B?
So, I've an executable in my debian server and this executable located in /home/human/ExecuteIt, still i cant figure it out how to run my executable in another location. In my case it is ...
0
votes
3answers
255 views
Is shebang always the same as the interpreter's installation directory?
Must the shebang header always match the interpreter's installation directory? If so, then why do both #!/usr/bin/python and #!/usr/local/bin/python work for me?
1
vote
0answers
37 views
Existing file can not be found? [duplicate]
/usr/share/tipp10$ ll
insgesamt 9408
drwxr-xr-x 3 myname ssl-cert 4096 Feb 26 20:07 ./
drwxr-xr-x 288 root root 12288 Feb 26 20:07 ../
-rwxrwxrwx 1 myname ssl-cert 9480 Okt 6 2010 ...
0
votes
1answer
985 views
Cannot execute binary file on Mac OS X Lion 10.7.5
I want to execute phylocon on a mac OS X lion but after changing the path and making the file executable, I get the error 'cannot execute binary file'. But the steps that I took to running the command ...
8
votes
1answer
2k views
how to convert a shell script into binary executable?
I want to convert my shell scripts into binary executable so that nobody else could edit or read it.Is there any way to convert it into binary executable?
10
votes
2answers
501 views
Shebang line with `#!/usr/bin/env command --argument` fails on Linux
I've got a simple script:
#!/usr/bin/env ruby --verbose
# script.rb
puts "hi"
On my OSX box, it runs fine:
osx% ./script.rb
hi
However, on my linux box, it throws an error
linux% ./script.rb
...
4
votes
1answer
82 views
How to monitor all executions of an executable over a time period
I know how to monitor a process. Commands like top and so forth can monitor the CPU time and memory usage for a given process instance.
But say I expect a given executable to be run several times in ...
3
votes
1answer
191 views
update-alternatives just for one user
I'm using a shared server.
On that server different versions of Java are installed:
Selection Path Priority Status
...
2
votes
2answers
39 views
Applying and linking all settings/binaries of one user to another user in Linux
In a linux machine, we may have to compile our programs with respect to that linux machine.
Now, if we already have some other users (not root. A typical user.) who have already compiled many ...
2
votes
2answers
103 views
Make a programme executable by common users
I've installed hddtemp on my Arch Linux, but it needs to be run with root permissions. I want to execute it as a normal user without using sudo. How can I do this?
0
votes
2answers
231 views
Why won't my binary run?
I have a binary that runs on my Debian Squeeze system, but then it doesn't do anything on my Debian Wheezy (kernel Linux 3.2.0-4-amd64) system. Both systems are 64 bit, while the executable is a 32 ...
3
votes
2answers
160 views
Why do I have to use sh to execute scripts from CD/DVD media?
I hit again on this strange behaviour of the system. I'm running Debian 6.0.6 and had quite some troubles executing a script directly from CD/DVD. Finally I had to use:
sh /media/cdrom/command
to ...
2
votes
4answers
89 views
Is there a structured format of version info for OS-level executables?
I am looking for a structured format of version info for OS-level executables, such as in /usr/bin and /usr/local/bin. The problem we are having is the inconsistent architecture between our PROD and ...
3
votes
2answers
2k views
Viewing Linux Library / Executable version info
In Windows, EXE and DLL have version info, including at least the following fields:
file version
product version
internal name
product name
copyright
In Linux Library / Executable:
Which fields ...
0
votes
1answer
71 views
Are .so files in Fedora considered ELF files?
ELF 'Executable and Linkable Format' So if I generate Shared Object files .so are those considered ELF files?
3
votes
3answers
959 views
In Unix speak what is the difference between a shell script and an executable?
I have seen this question on this site and this prompted me to ask this question . I want to know in Unix speak what is the difference between an executable and a shell script ?