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.

learn more… | top users | synonyms

13
votes
1answer
1k 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
160 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
656 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
40 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 ...
3
votes
2answers
150 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
467 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
371 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
107 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 ...
5
votes
2answers
9k 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
89 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
2k 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 ?
5
votes
3answers
1k views

Create a command for a Linux executable file

I'm using a program called node-webkit, but I can't start the program without specifying the full path to the executable file. Is there any way to associate a command (such as node-webkit) with an ...
2
votes
1answer
341 views

How to create a script, which runs another script in separate terminal window and does not wait?

I wrote the following #!/bin/bash cd ~/bin/red5-1.0.0 gnome-terminal --working-directory=. -x red5.sh red5.sh is the script to run (this is java written media server). My script above opens new ...
3
votes
2answers
326 views

Linux isn't sure whether a file exists or not [duplicate]

Possible Duplicate: Getting “Not found” message when running a 32-bit binary on a 64-bit system ts3user@...:~/ts3$ dir CHANGELOG LICENSE doc ... ts3server.pid ts3server_linux_x86 ...
1
vote
0answers
49 views

Linux From Scratch: make no such file or directory, bad interpreter [duplicate]

Possible Duplicate: Getting “Not found” message when running a 32-bit binary on a 64-bit system I have finished the chapter 5 of the book. And after I entered the chroot I realized that ...
2
votes
1answer
1k views

Calling java from Bash: “Cannot execute binary file”

I have this simple Bash script: #!/bin/bash java -jar ClosureCompiler/compiler.jar --js ../src/typescript.js --js ../src/ts-compiler.js --js_output_file TSCompiler.js I'm getting this error when I ...
0
votes
1answer
1k 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]: ...
14
votes
1answer
1k 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 ...
1
vote
2answers
685 views

Ubuntu Linux and SCO UNIX OpenServer

Can Ubuntu Linux run SCO UNIX OpenServer 5.0.7 applications like filePro? Can I use CTAR to copy application directories from a CTAR backup tape to Linux Ubuntu?
2
votes
1answer
289 views

truecrypt 1: Syntax error: “(” unexpected

I want to use truecrypt on a Linux machine. It is CLI mode only. So I downloaded the x64 and x86 and tried or run the extracted executable file for each version (x64 & x86), but it doesn't work. ...
17
votes
4answers
1k views

Why updating a running Linux system is not problematic?

It's years I use Linux systems on a daily basis, and I never had major problems by updating a system when it was running, but I still wonder why this is possibile. Let me make an example. Suppose a ...
3
votes
1answer
156 views

Running setuid binary temporarily without setuid?

Currently setting up xpra, which wants to run an X instance as non-root using the dummy driver, but the system Xorg binary is SUID. Since the system auto-updates, I would prefer not making and ...
6
votes
0answers
439 views

Can capabilities be used in scripts without setcap'ing the interpreter binary?

Right now I'm using cap_net_bind_service MY_USERNAME in /etc/security/capability.conf. Now I just need to set cap_net_bind_service+i on the interpreter of my favouite scripting language to be able to ...
5
votes
1answer
5k views

Executing a script in zsh - file permissions

I'm confused about execute file permissions not behaving as I expect. Probably because my expectations are wrong. Anyway: I have a script file, for simplicity is just called s, located in ~/bin. For ...
3
votes
2answers
184 views

place the aliased version of an existing command in /usr/bin/

I use Vim a lot, and I know how I can start vim in insert mode. So I have an alias named vii in my .bash_aliases file. On other hand I use Git a lot too, and I have this line in my .gitconfig: ...
10
votes
2answers
336 views

Why do so many programs live in PATH?

One thing that puzzles me about desktop Linux, at least, is that just about everything is in my PATH. By everything, I mean every desktop application, including things like gnome-character-map and ...
3
votes
2answers
3k views

File not found for file which is there [duplicate]

Possible Duplicate: “No such file or directory” lies on Optware installed binaries I am currently trying to get some piece of hardware to work on an embedded device. One part of ...
1
vote
1answer
851 views

Path issues with a source install

I hope my title isn't confusing. I've got a CentOS 5 machine and I had Ruby 1.8.7 installed on here. So in order to upgrade my Ruby installation and gems/rails I Uninstalled Ruby: sudo yum remove ...
22
votes
1answer
2k views

Why can't root execute when executable bits are not set?

root user can write to a file even if its write permissions are not set. root user can read a file even if its read permissions are not set. root user can cd into a directory even if its execute ...
2
votes
2answers
2k 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 ...
1
vote
2answers
147 views

Running 64bit OS , Find all 32bit programs on a system

How should I locate all 32bit programs on my system ? I'm running a 64bit OS. (There might be some , but I forget)
1
vote
1answer
232 views

Using emacsclient with custom emacs in $PATH

I want to use emacs command as a substitution for emacsclient -c -a "", which according to man connects to an existing emacs daemon, or creates a new daemon and connects to it otherwise. So i created ...
2
votes
3answers
4k views

How to find executable filetypes?

I want to find file types that are executable from the kernel's point of view. As far as I know all the executable files on Linux are ELF files. Thus I tried the following: find * | file | grep ELF ...
5
votes
2answers
541 views

vim: create file with +x bit

Is there any way to set +x bit on script while creating? For example I run: vim -some_option_to_make_file_executable script.sh and after saving I can run file without any additional movings. ps. ...
1
vote
1answer
529 views

ld-uClibc.so missing

I am trying to run an executable on Angstrom Linux, but ash tells me -sh: ./myEx: not found I've checked with readelf the program interpreter and it is root@beagleboard:~# readelf -l myEx | grep ...
2
votes
1answer
610 views

using Set uid to run a root command from non-root user

Consider the following two files. summarize's executable UID bit has been set, so that another user belonging to another group can execute the summarize executable that uses the customers.dat file. ...
3
votes
1answer
113 views

What does CONFIG_IA32_AOUT do actually?

I'm running a 64bit kernel, already have CONFIG_IA32_EMULATION set, so do I still need CONFIG_IA32_AOUT enabled? From the help in menuconfig, I don't quite get it.
1
vote
3answers
1k views

How do I run a windows executable in linux shell script?

I have an executable program (no source code, just the compiled executable) that was made in windows (.exe extension). It doesn't use any graphics... it simply reads and writes files. I want to be ...
2
votes
1answer
307 views

Why do Unix-like systems execute a new process when calling a new function?

Why do Unix-like systems execute a new process when calling a function rather than a dynamic library? Creating a new process is costly in terms of performance when compared to calling a dynamic ...
3
votes
2answers
192 views

Finding program name by wildcard pattern

I am trying to write a script that will attempt to find if a certain program is installed. Lets say that the program is called, myprog. The problem is that the program can be named in different ...
7
votes
1answer
2k 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 ...
1
vote
1answer
1k views

Generating a Linux executable with Mono with mkbundle

A C# file in mono can be compiled using gmcs command. This will create a hello.exe file. $ gmcs hello.cs $ ls hello.cs hello.exe $ ./hello.exe Hello from Mono! To generate a linux executable, I ...
4
votes
3answers
632 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 ...
5
votes
1answer
519 views

What determines the path where the system searches for a file?

I am trying to get npm to work. In the process, I seem to have two versions of it installed: A corrupt one installed in ~/bin, and another I just compiled and ran make install to put it in ...
21
votes
6answers
8k views

Can a script be executable but not readable?

Is it possible to execute a script if there is no permission to read it? In root mode, I made a script and I want the other user to execute this script but not read it. I did chmod to forbid read and ...
5
votes
2answers
262 views

Is it safe to remove a script file from within that script?

Imagine I have a script foo. It should be run once when the user logs in and isn't needed after a successful run. My question: Is it safe to remove the script file from within the script? E.g.: ...
3
votes
3answers
398 views

Join the executable and all its libraries

Lets say I have a /bin/cat executable that uses the following shared libraries: linux-vdso.so.1 libc.so.6 /lib64/ld-linux-x86-64.so.2 Is it possible to somehow "join" that stuff together ...
1
vote
1answer
3k views

“No such file or directory” when I clearly see the file listed with correct permissions [duplicate]

Possible Duplicate: Getting “Not found” message when running a 32-bit binary on a 64-bit system Ok I feel like I'm having some sort of brain fade moment, please help me out. I ...
2
votes
1answer
832 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
1answer
1k views

Creating symbolic links to applications in Mac OS X

I installed Aquamacs in a fresh OS X desktop, and wanted to be able to call the program from the commandline. Calling the file inside the app seems to work just fine: Amoss-iMac:bin amosjyng$ ...