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.
10
votes
2answers
4k views
Getting “Not found” message when running a 32-bit binary on a 64-bit system
I have currently a strange problem on debian (wheezy/amd64).
I have created a chroot to install a server (i can't give any more detail about it, sorry). Let's call its path /chr_path/.
To make things ...
18
votes
4answers
2k views
Why do we use “./” to execute a file?
Why do we use ./filename to execute a file in linux?
Why not just enter it like other commands gcc, ls etc...
17
votes
8answers
7k views
Different ways to execute a shell script
There a several ways to execute a script, the ones I know are:
/path/to/script # using the path (absolute or relative)
. script # using the . (dot)
source script # using the `source` command
...
1
vote
1answer
1k views
“No such file or directory” lies on Optware installed binaries
I've been using Optware to install packages on my ARM-based NAS for a while - the usual stuff like Transmission, Samba and others. However, I'd been having problems with Transmission hanging not long ...
4
votes
1answer
559 views
Where should a local executable be placed?
I have an executable for the perforce version control client (p4). I can't place it in /opt/local because I don't have root privileges. Is there a standard location where it needs to be placed under ...
8
votes
1answer
419 views
How to run my own program without specifying its path
Let's suppose I have compiled something and I run it like so:
$ /path/to/my/executable/mycmd
Hello World
What do I need to do to run it like
$ mycmd
Hello World
from everywhere in my computer?
...
9
votes
1answer
377 views
What is Linux doing differently that allows me to remove/replace files where Windows would complain the file is currently in use?
The example I have is Minecraft. When running Bukkit on Linux I can remove or update the .jar files in the /plugins folder and simply run the 'reload' command.
In Windows, I have to take the whole ...
7
votes
1answer
793 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?
23
votes
4answers
748 views
Execution of possibly harmful program on Linux
I'm writing a program that will test programs written by students. I'm afraid that I can't trust them and I need to make sure that it won't end up badly for the computer running it.
I was thinking ...
3
votes
3answers
351 views
Most unix-like filesystem that can be mounted under windows and Mac OS X
I've recently purchased a usb stick which I will be using to share data between me and my colleagues.
I'd like to format it as ext3, but I know this will cause trouble because for instance Mac OS X ...
2
votes
2answers
741 views
can't change file permission
Whenever I create or copy few shell files to usb storage device, then I am not able to make them executable.
If I create test.sh, it's default file permission will be 644, but when I execute
...
0
votes
1answer
380 views
/bin/sh: ./check-dependencies.pl: not found — but check-dependencies.pl exists!
I'm trying to build Moses, but when I run make I get the following output:
minakshi@minakshi-Vostro-3500:~/Desktop/working-dir/moses/scripts$ make release
# Compile the parts
make all
make[1]: ...
34
votes
2answers
6k views
How do I clear Bash's cache of paths to executables?
When I execute a program without specifying the full path to the executable, and Bash must search the directories in $PATH to find the binary, it seems that Bash remembers the path in some sort of ...
18
votes
4answers
4k views
What makes OSX programs not runnable on Linux?
I know there are many differences between OSX and Linux, but what makes them so totally different, that makes them fundamentally incompatible?
3
votes
1answer
9k views
./executable: cannot execute binary file
I have a script that works well when I ssh to the server to execute it myself, but has problems when Hudson, a continuous integration server, runs it.
I am automating tests on an embedded linux ...
6
votes
2answers
3k views
Binary compatibility between Mac OS X and Linux
Brace yourselves, this question will likely appear naive and/or foolish, seeing as I am relatively new to the inner workings of unix like systems, and programming in general.
Ready? Ok! I will go ...
4
votes
3answers
231 views
Why do you need the “./” when executing programs in the current directory? [duplicate]
Possible Duplicate:
Why do we use “./” to execute a file?
It seems redundant and gets annoying after a while -- is there a way to change this? If not, can somebody explain the ...
2
votes
1answer
633 views
skype not found on Oneiric 64, but it is right there [duplicate]
Possible Duplicate:
Can't execute some binaries in chroot environment (zsh: Not found)
I have something weird here. Cannot find a file although it is right there.
$ skype
command not ...
2
votes
3answers
1k views
Where do executables look for shared objects at runtime
The title is pretty explicit.
I understand how to define include shared objects at linking/compile time. However I still wonder how do executables look for the shared object (*.so libraries) at ...