Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-06-2009, 07:47 AM   #1
LQ Newbie
Registered: Mar 2007
Location: UK
Distribution: Windows Vista
Posts: 8

Rep: Reputation: 0
running applications from terminal

Hi All,

I have written a couple of small practice programs with PyQt, which end with either .py or pyw, anyway I want to see what the end result looks like but I don't know how to run the program, when I double click the icon for the file it opens up a text editer (g++), what is the cammand to make the application run from terminal.

I run Ubuntu 8.10 just incase anyone needs to know.

Thanks very much.

Old 01-06-2009, 08:04 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
If you have "#! /usr/bin/python" st the beginning of the script, then I think you can simply run it using "./filename" (Replace "/usr/bin/python" with the correct path to your python interpreter and be sure the file is set to be executable.)

Otherwise (I think) you could just enter "python filename".


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
how to compile java applications from terminal window nkd Linux - Software 3 11-10-2008 06:41 AM
during applications terminal when prompted for password will not respond claudiorollandin Linux - Newbie 2 10-29-2008 07:02 PM
CPU running at 100% usage while no applications are running mike_morley Linux - Desktop 14 05-17-2007 09:39 PM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM
not ALL applications can be started from the terminal. randell6564 Ubuntu 13 06-10-2006 11:49 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:30 PM.

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