LinuxQuestions.org
Visit the LQ Articles and Editorials 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 11-23-2007, 01:46 AM   #1
markusf21
LQ Newbie
 
Registered: Nov 2007
Location: LaPorte, IN
Distribution: Ubuntu 7.10
Posts: 3

Rep: Reputation: 0
How do I make a program launch in terminal?


I have a program set to auto run on start in sessions. Is there a flag or something I can use to make it run in the terminal?
 
Old 11-23-2007, 03:33 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,290

Rep: Reputation: 174Reputation: 174
??
example:

xterm -e bash -c 'date;read'
 
Old 11-23-2007, 12:25 PM   #3
markusf21
LQ Newbie
 
Registered: Nov 2007
Location: LaPorte, IN
Distribution: Ubuntu 7.10
Posts: 3

Original Poster
Rep: Reputation: 0
Let me try this another way. If I use ALT F2 to launch a program and I want it to run in a terminal what would I need to type? For example Firefox or Pidgin. I know that there is a box I could tick to run in a terminal but I would like to know the command instead.
 
Old 11-23-2007, 12:33 PM   #4
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Umm as far as I understand, those are graphical programs so running them "in a terminal" means you want a terminal to which they print their possible stdout/stderr messages, and that would happen by running a terminal which in turn would execute the preferred app, like
Code:
xterm -e firefox
This should run xterm, which should run 'firefox' in turn, and when 'firefox' exits, xterm should too if I'm right.

EDIT: of course you can use any terminal you like instead of 'xterm', like 'rxvt' or 'konsole' or such. Just remember to make sure you know which parameter you need to execute a program in it; for xterm it's '-e', and it's the same for rxvt too I guess, but not sure about Konsole for example.

Last edited by b0uncer; 11-23-2007 at 12:36 PM.
 
Old 11-23-2007, 01:43 PM   #5
markusf21
LQ Newbie
 
Registered: Nov 2007
Location: LaPorte, IN
Distribution: Ubuntu 7.10
Posts: 3

Original Poster
Rep: Reputation: 0
OK thanks for the reply. What would I do if i wanted a startup script to run in a terminal?
 
Old 11-25-2007, 07:15 PM   #6
Flab0y352
Member
 
Registered: Aug 2007
Location: Sunshine State
Distribution: Debian Testing
Posts: 72

Rep: Reputation: 15
just type "firefox"
 
  


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
How to launch terminal in fedora core 7? tmmalik Linux - General 3 09-01-2007 06:28 AM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM
After Using "make install": can't launch program! sammykrupa Linux - Software 4 06-16-2005 01:59 PM
make a program change from background to a new terminal, HELP! grupoapunte Programming 1 04-18-2005 09:50 PM
Make installed program default in terminal...?? mallesite Mandriva 3 12-09-2003 06:44 AM


All times are GMT -5. The time now is 09:54 AM.

Main Menu
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