3
votes
1answer
1k views

How to make a file executable? [duplicate]

How can I make my file so that I can double click on it, and it runs. It is a .sh script, but I also have files that say: executable (application/x-executable) in the description of what they are. ...
-1
votes
1answer
55 views

Problem executing file & unable to open terminal window

i have latest Ubuntu - and using it as a LIve CD 1. i have an executable file (file manager confirms that file is executable) that won't execute & File manager won't let me tick the permission box ...
2
votes
1answer
150 views

How do I make a desktop icon to launch a program?

Have an interesting issue. I am VERY new to Ubuntu and Linux systems. I have only been running linux on my laptop for a couple of months. Here is what I am trying to do - I recently installed google ...
-2
votes
1answer
45 views

any way to track an application [duplicate]

I have a software which when I go its directory path in terminal I run ./myprogram and my application start so I want to know how to understand which files are reading by my program which is not ...
4
votes
1answer
130 views

Running executable file from terminal

I am new to Ubuntu and currently I am trying to run executable files from the terminal but nothing is happening. When I am listing the files in the current directory I am obtaining the following: ...
0
votes
1answer
70 views

Running an executable with fixed execution-time and memory limit and getting exit-code

What is the best way to run an executable with execution-time and memory(RAM) limit (e.g. 2.5 seconds and 32768 kB)? Also I need to get the exit-code if it exits without violating time and memory ...
2
votes
2answers
675 views

How to edit files in /usr/bin?

Correct me if I'm wrong, but one of the directories in which commands are stored in Ubuntu is /usr/bin. I tried viewing one of the ELF 64-bit LSB executable files (synergy) with nano but all I see is ...
1
vote
1answer
59 views

How to call a custom executable or script in termnial directly with name?

I created an executable file using gcc and put it into the ~/scode folder. How do I run it? I tried typing just the name of the file but it responded with Command not found. I believe there is a ...
2
votes
1answer
156 views

Bash error when trying to execute a file

i am kinda new to linux and in programming so please excuse my lack of knowledge. I'm trying to run a basic program named trial.c with an executable file named trying but when I type ./trying in the ...
0
votes
1answer
691 views

Cannot execute just compiled binary file

And once again, typical question: "cannot run executable file". I Installed Virtual Box ver: 4.2.16 and on that Ubuntu. I compiled several fotran codes with command (maybe it should be noted that I ...
0
votes
1answer
145 views

Run Galfit in terminal

I'm trying to run a program called Galfit. I want to be able to just type galfit in the terminal and for it to run (then add switches and commands etc like galfit <input file>) I've tried ...
0
votes
1answer
41 views

Can only open bukkit.sh with Java Web Start

I'm trying to run bukkit.sh file with java 7 runtime. Instead the only application I can associate the bukkit.sh java file is java web start. I've done the basics, installed java7, set the bukkit.sh ...
0
votes
1answer
5k views

How can I create an executable in Linux (beginner)?

The deal is that I just recently began to use Linux (Lubuntu) and I need some basic knowledge. My brightness on my Packard Bell Dot netbook is always on the highest, and the brightness control buttons ...
1
vote
1answer
48 views

Opening two applications with single click?

I want to open firefox with few websites and eclipse with single click of .sh file. I am trying the following command: eclipse firefox http://localhost/wp3.5.2/ http://localhost/wp2/ They work ...
1
vote
2answers
307 views

Command for opening application using java through terminal?

I downloaded Tomighty(pomodoro app) on my Ubuntu 12.04. Everytime i have to start tomighty, i have to right click on the tomighty's jar file and click on open with sun java 7. is there any command ...
0
votes
1answer
270 views

Does placing a symbolic link in the path work the same as creating a symbolic link of an executable in the path?

As the title says, I'm about to do an install of an executable. Normally I would either 1. install the executable to somewhere in my path i.e. HOME/bin/ or if that wasn't feasible 2. would add the ...
3
votes
1answer
171 views

What is the difference between `command` and `./command`?

I found that sometime I use the command to run a command, but sometime I use the ./command to run another command. What is the difference?
2
votes
1answer
1k views

How do I create a shortcut and place on the desktop?

I would like to create a shortcut which will cd to a particular directory and then execute a .sh file, thereby opening my application. At the moment I enter the following into the terminal: cd ...
1
vote
1answer
431 views

How to i convert this bat file to install a game with it?

Bat file is following : @echo off uharc x data.uha call restore.bat startw unpack.exe /nh startw inject.exe "streams.wav" startw regsetup.exe del data.uha > nul del uharc.exe > nul del ...
6
votes
3answers
11k views

How to make a file (e.g. a .sh script) executable, so it can be ran from terminal

I have a script.sh file and type of this file is shellscript file. I want to make this file as application/x-executable file. How can I make it?
8
votes
3answers
19k views

How do I create a script file for terminal commands?

In Windows I can write a file containing commands for cmd (usually .cmd or .bat files). When I click on those files it will open cmd.exe and run them commands the file contains. How would I do this ...
4
votes
2answers
4k views

How to find the executable file of an app if 'whereis' is not showing it?

This basically to do with cuttlefish(The app from showdown) in this case. I cant find the location of the executable file for it. The command whereis did not give any results! I want to add it to ...
1
vote
2answers
4k views

Reading from a text file and executing contents in terminal

Lets say I wanted to create a .txt file that had some commands in it. Then from .txt file the contents are extracted to the terminal. Is this even possible and does it have to be a .txt file? oh and I ...
0
votes
2answers
789 views

Ubuntu 11.10 “cant find” Executable files (NOT .exe's)

i am trying to run an executable file from ubuntu 11.10, and this happens for several different files. i try to run the file and it says "no such file or directory" it is not the file because the ...
2
votes
1answer
578 views

Can't execute my own program

I am learning programming using the OpenGL and SDL library. Problem is, once the program is built, I can't run it. (bash: ./nameOfMyProgram Permission denied) I never had this problem with previous ...
0
votes
3answers
1k views

Cannot launch an application, 'No such file or directory' but it exists

The folder exists, the application has been made executable. But when i run it I get the following message: pst007x@pst007x-Aspire-5741:~$ /home/pst007x/Applications/ClipGrab/clipgrab bash: ...
0
votes
2answers
3k views

Perl Script Permissions

I'm having a few problems with running a Perl script. Every time I try to run it (its from a runescape launcher client), it give me the following message in terminal: Permission Denied How can i fix ...
3
votes
0answers
10k views

Why can't I execute any .sh scripts? [duplicate]

Possible Duplicate: How do I run .sh files in Terminal? When I try to run a .sh script in Terminal it says I have no permissions to do that. And when I try to run an executable nothing ...
1
vote
2answers
1k views

Execute without ./ prefix

At my school's Linux cluster, its possible to run executables without the ./ prefix. However, on my home machines, I have to do this. I tried adding the code folder to the PATH via export ...
7
votes
5answers
37k views

Can't execute .out files, getting permission denied

I have written a C++ program and complied it to produce a.out file. However, whenever I try to run it, I get Permission Denied. I read that we can use sudo, but I can't quite get it to work. I use ...
42
votes
6answers
9k views

What is the difference between ./ and sh to run a script?

I have written a simple script. When I runsh <myscriptname.sh>, i got the correct output, but when I run ./<myscriptname.sh>, I got an error. What is difference between when I do sh and ...