Ubuntu :: Creating Executable Files With Bash?

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


ADVERTISEMENT

Ubuntu :: Accessing And Creating Files Names With Nested Loop In Bash?

Aug 12, 2011

nested loop in ''Bash-Scripting in Linux'' ?What's wrong with my code:

for x in `seq 0.75 0.01 0.95`
do
for y in `seq 0.20 0.01 0.40`

[code]....

View 1 Replies View Related

General :: Creating Desktop Shortcuts - Executable File For XMMS

Dec 19, 2009

I just installed XMMS and I want to create a shortcut on the desktop to run it. I found a how-to video for creating shortcuts so I have the gist of it (I was able to create one for Firefox) but I don't know where to find the executable file for XMMS to do the same. I just don't know enough about Linux's file structure to know where to look.

View 2 Replies View Related

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 View Related

General :: Running Executable In Bash Script

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

General :: Executable File Apparently Doesn't Exist When Trying To Execute With Bash

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

Ubuntu :: How To Open Executable Files Not .exe Files

Jun 27, 2010

I just installed the nmap for port scanning and then run ./configure , make , make install command respectively. It works and then I successfully installed nmap under /usr/local/bin . nmap is a executable file not .exe . so my question is how can I open it .

View 8 Replies View Related

Ubuntu :: Cant Make Files Executable?

May 28, 2011

I cant make files executable anymore.using chmod or from file properties.. it isn't working.
AS far as I remember, I didn't make any changes in the user settings and my account has the administrator rights. For an un-executable file, say a jpg or a txt, it can be done.but doesn't happen with a .sh, .py or any other xecutable. chmodi-ing shows no error, but the file isn't executable. Through the GUI, when I check the box , its immediately unchecked again.

View 2 Replies View Related

Ubuntu :: Make Executable .sh Files Run Automatically?

Feb 19, 2010

How do you make executable .sh files run automatically without prompting me on whether I want to Run in Terminal, Display, or Run?

View 1 Replies View Related

Ubuntu :: Default Editor For Executable Files?

Mar 21, 2010

The default editor for *.sh *.cpp etc has changed to emacs once after the installation of emacs. How can I changed back to gedit?

View 3 Replies View Related

Ubuntu :: How To Make Script Files Executable

Jun 1, 2010

I would like to make lisp files executable. Ie. i can go like this on the command prompt

./hello.lisp

and it would invoke a .sh script on hello.lisp which would cause the file to execute.

View 5 Replies View Related

Ubuntu :: 10.10 - Making Blocked Files Executable?

Oct 14, 2010

I just upgraded to 10.10 (everything was working fine in 10.04). I have .jar files that in 10.04 would execute with OpenJDK. Now I get an error message, telling me that it is blocked:

"The file '[path]' is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dangerous to run. For more details, read about the executable bit."

I try to set it as executable like it was before, and it's a no go. My checkmark takes then quickly disappears before my eyes.

View 5 Replies View Related

Ubuntu :: Opening Executable As Text Files?

Oct 29, 2010

So I have Python file :

Code:
#!/usr/bin/env python
print 'python'
raw_input('')
And another :

[Code]....

as it should. I don't want to take such a hassle always running python by path.

View 4 Replies View Related

Ubuntu :: Tweaking Executable Text Files

Mar 3, 2011

is there a way to directly open the executable text files in ubuntu without that annoying msgbox asking us to display or run in terminal mode...

View 1 Replies View Related

Ubuntu :: Cannot Mark Files As Executable - No Option?

Jul 23, 2011

In Xubuntu, I can't seem to mark files as executable. I go into the properties, but there is no option to do this. Is there a way to mark .exe and .jar files as executable in XFCE?

View 4 Replies View Related

Ubuntu :: Which Application Can Open Executable Files

Aug 11, 2011

I have downloaded Unetbootin for linux. When I double clicked on it, it says, no application to open executable files.What application can open executable files?

View 3 Replies View Related

OpenSUSE :: Can't Run Executable Files?

Mar 29, 2011

I've always been able to run my shell scripts and other executable files using dot slash, ie: ./runfile.shAfter doing a fresh 11.4 install, I cannot run my scripts. Even if I 'source' the file, it won't run. Why?This is an example of the files that will no longer run. Permissions look normal to me, but there is an * at the end of the filename. I think that just means it's executable, but I've never seen it on my systems before.

Code:
-rwxrwxr-- 1 udaman users 25989559 Feb 4 2010 GoogleEarthLinux.bin*
-rwxrwxr-- 1 udaman users 42905128 Aug 28 2010 NVIDIA-Linux-x86_64-256.53.run*

[code]...

View 9 Replies View Related

General :: How To Run Executable Files

Oct 20, 2010

I have a Nvidia driver that i need to run from the console.How do i do it and how do i find the file (to run it) from the console

View 14 Replies View Related

Slackware :: Cannot Run Executable Files In 13?

Apr 25, 2010

I just encounter a problem after installing slackware 13, that I can not run someexecutable files as easily as before in 12.2.Here is an example:

hwang@hwang:~$ ls -l
total 36
drwxr-xr-x 2 hwang users 4096 2010-04-24 23:32 Downloads/

[code]...

View 8 Replies View Related

Debian :: Creating A Bash-shell Script

Dec 1, 2015

how to do in Debian

1. am required to create a bash-shell script called terminator that terminates all processes of a name given to the shell script as an argument. Make sure the terminator shell script will not take any crucial file system services as arguments.

2. Show how you would configure an Ethernet card by reapplying your existing IP and network mask

3. Install a workable nfs file sharing system between your system and a remote system, using optimum values for resize and wsize.To demonstrate send a 512Mb block of random data between client and server using the dd command.Write down the relevant steps and procedures

View 6 Replies View Related

Programming :: Creating An Automated Bash Scrpit

Feb 2, 2011

list the used variables.

1. display menu until user quits the script
2. menu would give following options to
a. create backup
b. restore files from backup
c. quit
3. for option a or b user would be required to specify the files and name of the archive]
4. has option to be run with use of parameters if that is the case it will not display menu but carry out required task unless it was not possible to do
5. incase of any errors are encountered it would call external scrpit that would display custom disigned error message.

View 6 Replies View Related

Programming :: Bash - Creating Service For A Script?

May 10, 2010

I wrote a script for capturing port 5060 with tshark.Well, it's only a line, but I needed to send a positional var, and I couldn't do it with an alias. Now I need that script to run as a service, so I can start/stop. (Using CentOS)

Code:

#!/bin/bash
#
# capture service

[code]....

One more thing, my goal is to start/stop the service with

Code:

service myservice start|stop

Is that possible? I read that I must use chkconfig.

View 1 Replies View Related

Programming :: BASH Scripting - Creating A Map Tree?

May 7, 2011

looking to write a dependency map tree that creates a tree structure of object names . This tree will be written to a file and read back to create the tree structure of files . how to write this using bash ?

View 1 Replies View Related

Ubuntu :: Creating A Text File To Start Up Sudo Bash Without Going To The Terminal?

Feb 26, 2011

I just set up apache on my PC and I cant change the permissions by right clicking because "I'm not the owner" and instead of using the chmod command on every file that I would like to edit I would just like to write a script on a text file, save it to my desktop so all I have to do is double click on it and boom I can edit all my files, etc.

View 2 Replies View Related

OpenSUSE :: Running DOS / Windows Executable Files

Apr 5, 2011

I need to instal JDownloader, I downloaded as a linux version and this is the command line output (Archive Manager):

Archive: /root/Downloads/JDownloader/JDownloader.exe
[/root/Downloads/JDownloader/JDownloader.exe]
End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive.
zipinfo: cannot find zipfile directory in one of /root/Downloads/JDownloader/JDownloader.exe or
/root/Downloads/JDownloader/JDownloader.exe.zip, and cannot find
/root/Downloads/JDownloader/JDownloader.exe.ZIP, period.

View 9 Replies View Related

General :: How To Only Copy Executable Files (or Without Extension)

May 9, 2011

Suppose there is a directory named mydir containing ...
aaa.cpp
aaa.h
bbb.cpp
bbb.h
Makefile
a
b
Where a,b are executable files. What I want to is to only copy a and b to another location. Is it possible? (other than by manually issuing copy a,b another_dir).

View 2 Replies View Related

General :: Open Executable Files On Ununtu?

Jan 26, 2011

best program to open .exe files on Ubunut!

View 2 Replies View Related

General :: Wine Installation To Run Executable Files?

May 11, 2011

I recently got the information that Windows software do not run in Linux as such. In order to run these software (Running the software also includes installing the software by running the set-up executable file) I need to install 'wine' on my system and then run the set-up files from within this 'wine'. I therefore wish to install 'wine' on my system in order to run the corresponding Windows set-up files (which are executable files). I am running Linux Mint version 10 on my system.

View 2 Replies View Related

Programming :: Bash Script: Passing Values From Script To A C++ Executable?

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

General :: Creating A Script To Move Or Copy Files Into Multiple Directories Below The Files?

Aug 25, 2009

How can you create a script to move or copy files from a main directory into multiple directories below the main directory.

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved