LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How do I make a program launch in terminal? (https://www.linuxquestions.org/questions/linux-desktop-74/how-do-i-make-a-program-launch-in-terminal-601814/)

markusf21 11-23-2007 01:46 AM

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?

bigearsbilly 11-23-2007 03:33 AM

??
example:

xterm -e bash -c 'date;read'

markusf21 11-23-2007 12:25 PM

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.

b0uncer 11-23-2007 12:33 PM

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.

markusf21 11-23-2007 01:43 PM

OK thanks for the reply. What would I do if i wanted a startup script to run in a terminal?

Flab0y352 11-25-2007 07:15 PM

just type "firefox"


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