LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Execute Programs: (http://www.linuxquestions.org/questions/linux-desktop-74/execute-programs-561548/)

Analysis 06-13-2007 03:22 PM

Execute Programs:
 
Hello

I am very very new to linux and have been figuring it out as I go, but I have ran into a program.

I want to run a .tcl and a .motran file. If I click on the icon I get a textread out of the program, and if I run the file from the terminal, the program runs. I want it so that when I click on the file it runs the program (similiar to if I run in terminal). I am running Kubuntu. The programs themselves run perfectly when I run through the terminal but I want to save lots of time and not have to change directories all the time.
Also, I have tried clicking the permissions of the files in question to "Is Executable" but this doesn't change a thing.

Thanks, and if I haven't made the program clear enough please ask.

Clark

pixellany 06-13-2007 03:35 PM

I just ran a quick test---two files with identical permissions (744). One is a script beginning with #!/bin/bash, the other is just text.

Double-click on the script and it runs, double-click on the other one and it opens in an editor.

What I infer from this is that the GUI first tries to run the file, and then displays it when it cannot run it. In the terminal, the "just text" file just gives error if I try to run it.

Analysis 06-13-2007 03:40 PM

So what do you suggest? I am really just trying to run a program withtout the terminal. Also, I stress that I know very little about anything linux.

Nylex 06-13-2007 03:57 PM

If they're console based programs, how would you run them outside a console? :confused:

pixellany 06-13-2007 06:19 PM

Quote:

Originally Posted by Nylex
If they're console based programs, how would you run them outside a console? :confused:

Quote:

If they're console based programs, how would you run them outside a console?
a program is a program....you can run it from anyplace that accepts a command (path) string. The real issue is that you might not see the output of the program unless you have a terminal open.
How's that for hair-splitting?......;)


All times are GMT -5. The time now is 05:25 AM.