LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 06-13-2007, 03:22 PM   #1
Analysis
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
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
 
Old 06-13-2007, 03:35 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
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.
 
Old 06-13-2007, 03:40 PM   #3
Analysis
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
Old 06-13-2007, 03:57 PM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
If they're console based programs, how would you run them outside a console?
 
Old 06-13-2007, 06:19 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
Quote:
Originally Posted by Nylex
If they're console based programs, how would you run them outside a console?
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?......
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I can not execute compilied programs guitarfella Fedora 2 04-23-2005 12:45 AM
Programs/Installers won't execute. PLEASE HELP DesyphER Linux - Software 4 03-02-2005 05:01 PM
can xmodmap be used to execute programs? vexer Linux - General 1 10-02-2004 07:26 PM
Root can execute programs lawrencegoodman Linux - Newbie 11 01-28-2004 08:42 AM
Programs execute at startup Greg21 Linux - Newbie 5 06-05-2003 04:07 PM


All times are GMT -5. The time now is 07:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration