LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   shell script: how to run a application in another terminal (http://www.linuxquestions.org/questions/programming-9/shell-script-how-to-run-a-application-in-another-terminal-4175422119/)

saidopdf 08-14-2012 09:39 PM

shell script: how to run a application in another terminal
 
hi

how to run an application in another terminal using shell script.

thanks
sai

cortman 08-14-2012 09:53 PM

Quote:

Originally Posted by saidopdf (Post 4754337)
hi

how to run an application in another terminal using shell script.

thanks
sai

Code:

terminator -e program_name
Substitute your terminal name for "terminator"

saidopdf 08-14-2012 09:58 PM

Quote:

Originally Posted by cortman (Post 4754343)
Code:

terminator -e program_name
Substitute your terminal name for "terminator"

it is giving command not found

NevemTeve 08-15-2012 01:50 AM

Then replace the word 'terminator' with 'xterm':

xterm -e mc

cortman 08-15-2012 07:07 AM

Quote:

Originally Posted by cortman (Post 4754343)
Substitute your terminal name for "terminator"

^^^

David the H. 08-15-2012 07:16 AM

You should really be a bit more detailed in your questions. What exactly do you want to do? What commands do you need to run, and why do you want to run them in a new console? What environment are you doing this in (OS, shell, etc.)?

Also, please try to read the answers you get thoroughly and do some work to figure out problems yourself. cortman said clearly 'Substitute your terminal name for "terminator"', and the error you got was "command not found", which means that the program terminator isn't available to you (probably because it isn't installed).

So either ensure that that program is installed and available, or use a different console program. You probably want to use the one you're already using anyway. Check the documentation for whichever one you decide on to confirm that the syntax is ok too (although all the major ones should conform to the "-e" option).


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