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.

568 questions
21
votes
2 answers

what is zsh: exec format error in redhat?

zsh: exec format error... his is the error I was getting when trying to execute a large application. I am using redhat Linux. What can I do to solve this?
user91095
  • 221
5
votes
1 answer

What are the main execution stages in Linux (how does a program basically gets executed in Linux)?

I understand that there are two stages of execution in Linux, dealing with every command we run. I'll name this how I understand them because I don't know the original phrasing: Shell handling --- The shell edits the command (splitting it to…
4
votes
2 answers

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 create an executable in Linux for the program below taking…
Sonali
  • 41
3
votes
2 answers

Best way to create "interruptable" executable

The job of my Unix executable file is to perform a long computation, and I added a interrupt/resume functionality to it as explained below. At regular intervals, the program writes all relevant data found so far in a checkpoint file, which can then…
3
votes
1 answer

arm-eabi-gcc: cannot execute binary file

I am trying to build a ROM from AOSP 5.1.1 specifically (Nexus 7 - grouper). However, a while ago I got stuck at this part while building the kernel. The following command works fine: make tegra3_android_defconfig The problem starts when I write:…
fahad
  • 31
2
votes
0 answers

What is the mechanism behind my script losing its executable bit after I append to it in a script?

I am wondering if this is behavior due to SELinux or something else. I have a deploy script that I run and inside, I had sudo chmod +x /etc/rc.local, and some lines later I echo some startup commands, grep "startupcmd" /etc/rc.local || sudo echo…
Steven Lu
  • 2,282
1
vote
1 answer

Have Linux recognize custom extensions

This question is for a school project so i'm not looking to just be given a block of code or anything, just some direction on how to go about my work. I want to be able to have my own custom file extension recognized within the OS(for example…
M.G
  • 199
  • 1
  • 6
1
vote
1 answer

executable file problem after transfer to other system

I had a C program and made it executable on my 32 linux mint. For assignment purposes I had to test if it was working on university pool computers. I honestly don't know which linux distributions are installed there, just had two minutes didn't…
Leonardo
  • 123
1
vote
1 answer

a.out - Data segment and text segment are contiguous iff text segment is not shared. Why is this so?

I was reading the man page for the ancient a.out format (located here), trying to understand the evolution of Unix executable formats. I was wondering about something. The man page says that if the magic number is OMAGIC, then the text segment is…
0
votes
2 answers

Is it possible to show when an executable was run for the last time?

Note that the FS is mounted with the relatime option (thus the recent last access time is not shown). Is there a way to see when an executable (ELF 64-bit LSB executable) was run for the last time? Using root access. The idea is that a complex…
Déjà vu
  • 626
0
votes
2 answers

Open/read Unix Executable file

Is there a native way (no installing or downloading extra stuff) to read a Unix executable file? I just need to read file to see what's in it and learn what I can use it for. What I'm really trying to do is learn what the Wireless Diagnostics app…
-3
votes
1 answer

Unix Executable File To Text File

Is there a way to change a text file to a unix executable file without terminal? I'm using a school laptop that is a MAC and it doesn't allow me to use terminal. Im trying to change a text file or a .txt file into a unix executable file. I need to…