Ubuntu :: Convert Bash Into Executable File?
Jan 19, 2010
SO I'm not talking about changing the file permissions, The only thing I could find on google was this [URL]Basically can you convert your bash script into a executable file, One that you can't open in text editor?
View 2 Replies
ADVERTISEMENT
Feb 18, 2010
In a project I'm working on with a few other people, I got the task of writing an assembler. The last thing I do is convert the commands into a binary representation, and jam it into a file. Now one of my teammates said he'd like to be able to "reference" the code within another program. He said he'd be able to do this if the file I output is a Linux object file. I'm thinking it'd also work as an executable. Anyway, he said he'd like to be able to grab the file and reference the binary by address. I'm still fuzzy on this, and if you're confused with what I said here, please tell me so I can ask him for better details.Anyway, I'm aware that gcc can compile files to ".o", but that's only for C/C++, and my file is just binary. I'm also aware of "ld", but I haven't seen any use of it to help me. I'm happy to hear suggestions as to what I can do. If anything, I think I'll implement a few functions to grab the bits and hand them to him in an array or something.
View 8 Replies
View Related
May 9, 2011
I downloaded a program called tonespace http://www.mucoder.net/en/tonespace/ which I extracted and then tried to execute the executable file with ./tonespace. This gives me the following message:
bash: ./tonespace: No such file or directory
When I use the command: file ./tonespace I get this: tonespace: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
I dont get it. The file is clearly there, yet when trying to execute it bash doesn't seem to recognize it.
It has permissions rwxr-xr-x and is not owned by root. Am I overlooking something?
View 2 Replies
View Related
Jun 20, 2010
I am running into a snag on .exe files in Lucid. I have Wine installed, but I can not open the file as it is blocked from executing with a window popping up telling me that this file was blocked due to security reasons. I go into the files properties and try to change the permission but that does not help. Is there a way to get around this? Possibly in the terminal as root?
View 3 Replies
View Related
Apr 20, 2011
you can make a file that runs the contents as if typed out by the user in command prompt by saving the file as either .bat or .cmd . When using BASH in ubuntu, is it possible to save terminal executable files (from a text editor, like GEDIT), What file ending does it take, can i lay it out with just commands? (what is the syntax)
View 3 Replies
View Related
Mar 27, 2011
I've been trying to write a bash script called runSorter.sh that runs an executable that also takes in some parameters and outputs the results to a text file. The executable, sorter, takes in a number parameter. I want to make it so that you can input as many number parameters into runSorter.sh as you want and it will run the sorter executable for each one. So far, what I have looks like this:
#!/bin/bash
args=("$@")
INDEX=0
if [ -z args ]; then
echo "Error"
else
while [ $# -gt $INDEX ]; do
NUM=${args[$INDEX]}
echo $NUM
echo ./sorter $NUM
let INDEX=INDEX+1
done
fi
My problem is that when I run ./run-sorter.sh 100 on my terminal, it just prints this to the screen:
./sorter 100
How can I have so that it properly executes sorter and outputs everything to a text file?
View 4 Replies
View Related
Jan 19, 2010
I am trying to use 'convert' in command prompt to convert image file format.I get the following error.
convert: UnableToOpenConfigureFile `delegates.xml' @ configure.c/GetConfigureOptions/589.
convert: NoDecodeDelegateForThisImageFormat `airplane.jpg' @ constitute.c/ReadImage/530.
convert: MissingAnImageFilename `airplane.ppm' @ convert.c/ConvertImageCommand/2838.
View 3 Replies
View Related
Sep 19, 2010
I have NDISWRAPPER installed on my laptop, but when I try to install the download file which is a Windows Xp dos executable file of 8mbs I have tried every thing but without success I can see my Iomega 250 Zip drive when I go into system>administration>disk utilities and acess properties but cannot make it run,
Dell inspiron 6400
OS: Ubuntu 10.04LTS
Ram:2gb
HDD: 250gb
Tony044
View 1 Replies
View Related
Aug 13, 2010
Does executable file contains the precise path to SO file? Should it be compiled with precise knowing of SO file location?
View 8 Replies
View Related
Sep 29, 2010
MBM (image psion format), please how to convert this to regular jpg format? I would like under command line because it is for a scripting
Code:
paul@debian:~/mypsion$ psiconv Skizze
Unknown output type: `TIFF'
this results in no output
View 8 Replies
View Related
Jun 9, 2010
So, I have this awesome idea whereby I will, every few minutes, dynamically generate a nightside view of the earth.That's the Fourmilabs sat image. I want to set it as my wallpaper. I have already written the bash script to download it and drop it into my wallpaper directory, and I'm using kcron to update my wallpaper. Here's my problem. That URL yields an image, but I can't figure out how to convert that image to a usable file format. It's OTF generated, so unlike other sites that have a format like .../image.jpg, this URL isn't playing nice.
View 9 Replies
View Related
Apr 28, 2010
compile binary package for bash script?
View 2 Replies
View Related
Apr 13, 2010
I am fairly new to Linux systems but I have a code that I just compiled and it produced an executable file that I need to run but I have no idea how to run that file. Is there a certain command to type to do it?
View 3 Replies
View Related
Oct 23, 2010
ok so i am trying to write a batch convert script for mp3hd(do not snigger)my starting point is a script i know works i got elsewhere
Code:
for f in *.m4a; do ffmpeg -i "$f" "${f%.m4a}.wav"; done
from here
[code]....
View 9 Replies
View Related
Sep 19, 2009
I'd like to write a bash script to convert all of the .mpg files in a directory to .avi files. The ffmpeg part of this produces the kind of file that I want, but rather than changing the name of the input and output files each time that I run the script, I'd like to automate it. I've tried this script, but I get an error "command not found".
#!/bin/bash
cd /home/michael_s/golf_temp
1 for i in 'ls *.mpg' ; do
/usr/bin/ffmpeg.exe -i /home/michael_s/golf_temp/"$i" -map 0:0 -map 0:1 -pass 1 -vcodec mpeg4 -vtag xvid -f avi -b 1100k -vol 384 -mbd rd -s 640x480 -aspect 4:3 -acodec libmp3lame -ac 2 -ab 128k /home/michael_s/golf_temp/"$i".avi
rm -f /home/michael_s/golf/temp/"$i".avi
/usr/bin/ffmpeg.exe -i /home/michael_s/golf_temp/"$i" -map 0:0 -map 0:1 -pass 2 -vcodec mpeg4 -vtag xvid -f avi -b 1100k -vol 384 -mbd rd -s 640x480 -aspect 4:3 -acodec libmp3lame -ac 2 -ab 128k /home/michael_s/golf_temp/"$i".avi
done
fi
quit
View 5 Replies
View Related
Jan 13, 2011
I have a script in the works that reads an MP3 file and gets the track length. Trouble is, it gives me the total seconds, like this:
Sample Track.mp3 = 225.55 seconds
What I'd like to have is that 225.55 converted into minutes:seconds format (in this case, 3:45). How can I do this?
View 10 Replies
View Related
Sep 11, 2010
i installed "littler" from Synaptic. it's a front end for R, for those curious. it's not in my start menu. i searched for the app and don't know where it is. assuming i can find it, how do i set things up so that i can run it from a listing in the start menu? sorry to be so basic, but i mean from locating this app to getting it to start to making it available in the start menu, how would i do this
View 1 Replies
View Related
Jan 23, 2011
I use wine to execute my games. Now it says all the exes are unexecutable.I'm not very use to ubuntu
View 9 Replies
View Related
Mar 22, 2011
It so happens that some files that I am trying to make executable by chmod +x <filename> or otherwise are not becoming executables, rather the tick mark on the option is removed the very instant I put it on . Is there any thread of virus or any other reason for this.
View 5 Replies
View Related
Jun 16, 2011
I downloaded eclipse from the eclipse site..i had to make the main eclipse file executable..but i cant do that..when i click on "Allow executing file as program"..the tick disappears in a second..
View 9 Replies
View Related
Apr 17, 2011
I have written C++ programs on Windows. I am now learning Linux to ensure my software is portable. I can compile and run C++ programs from the bash shell, but I cannot run my executable programs from the GUI.Here is my sample program:
Code: #include <iostream>
int main()
{
[code]...
View 3 Replies
View Related
Mar 4, 2011
I've been searching the forums and google in an attempt to find an answer. I'm completely new to scripting and just want to get one or two up and running but I'm having problems with my current script. I want the script to:read my inputs run a loop in certain steps
within the loop execute a program with output to another file enter the values into the program (Problem area)
Quote:
#!/bin/bash
echo "Enter the Lower value, followed by [ENTER]"
read L
echo "Enter the number of steps you want to take, followed by [ENTER]:"
read s
[code]....
Running the program from the shell asks for 3 variables, which in my script are i, tt and adstep. I understand conceptually why it won't work. It won't move onto the next line in the loop until the previous task is completed (which doesn't even start without the 3 inputs!)
View 3 Replies
View Related
Sep 3, 2010
I am trying to run Wattch simulator in linux.But it is giving the error below. what is this error and what do I do about it?
fatal: bad magic number in executable `prime' (not an executable?)
View 1 Replies
View Related
Jul 16, 2010
I would like to convert OGV files to audio format.
View 4 Replies
View Related
Nov 7, 2010
I want to convert fdf file to xsf file or xyz file on ubuntu 9.10_32 bit .
View 5 Replies
View Related
Jan 20, 2010
I created a bash script to help me mount my network shares.However when I link the file to the desktop and dbl click on the link it asks me if I want toCode:RUN IN TERMINAL - DISPLAY - CANCEL - RUNHow can I get it to RUN IN TERMINAL each time I dbl click it?
View 5 Replies
View Related
Jun 3, 2010
when I create a new text file in my pendrive, it become executable automatically. The text file name append with asterisk(*). However when I create a text file in Desktop, the created text file is normal and is not executable.
Another thing is when I copy a PDF file to my pendrive, it become executable file with asterisk (*) append after the PDF name. I've try copy whatever to pendrive but all end up with executable file.
View 6 Replies
View Related
Jul 3, 2010
I have downloaded the file "bitnami-wordpress-3.0-0-linux-installer.bin", it's a Wordpress stack, with PHP and apache and whatnot.. I am asked to make it executable using "chmod a+x <installer file>"what do i do? cd to where it is, and "chmod a+x <bitnami-wordpress-3.0-0-linux-installer.bin>"?and if yes, i just double click on it afterat to run the installation?
View 9 Replies
View Related
Jul 17, 2010
When you press exit the gnome-terminal exits.. where is the exit file located? (It isn't at /bin or /sbin or /usr/bin or/usr/sbin )
View 2 Replies
View Related
Aug 5, 2010
So I'm following the online tutorials I've found to install sketchup, and I've run into a snag right off the bat. The instructions I've found say to open the Sketchup exe file by right clicking and selecting open with Wine I do this and I get a box stating that the file is not marked as an executable. How do I fix that? Step by step instructions would be best since I only just installed ubuntu for the first time two days ago
View 1 Replies
View Related