LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 08-14-2012, 09:39 PM   #1
saidopdf
LQ Newbie
 
Registered: Jul 2012
Posts: 5

Rep: Reputation: Disabled
shell script: how to run a application in another terminal


hi

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

thanks
sai
 
Old 08-14-2012, 09:53 PM   #2
cortman
Member
 
Registered: Jan 2012
Location: ZZ9 Plural Z Alpha
Distribution: Crunchbang 11, LFS 7.3, DSL 4.1.10, Lubuntu 12.10, Debian 7
Posts: 219

Rep: Reputation: 43
Quote:
Originally Posted by saidopdf View Post
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"
 
1 members found this post helpful.
Old 08-14-2012, 09:58 PM   #3
saidopdf
LQ Newbie
 
Registered: Jul 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cortman View Post
Code:
terminator -e program_name
Substitute your terminal name for "terminator"
it is giving command not found
 
Old 08-15-2012, 01:50 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,456

Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
Then replace the word 'terminator' with 'xterm':

xterm -e mc
 
Old 08-15-2012, 07:07 AM   #5
cortman
Member
 
Registered: Jan 2012
Location: ZZ9 Plural Z Alpha
Distribution: Crunchbang 11, LFS 7.3, DSL 4.1.10, Lubuntu 12.10, Debian 7
Posts: 219

Rep: Reputation: 43
Quote:
Originally Posted by cortman View Post
Substitute your terminal name for "terminator"
^^^
 
Old 08-15-2012, 07:16 AM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946
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).
 
3 members found this post helpful.
  


Reply

Tags
shell scripting, terminal


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Script: Getting signal handlers to work when running an application by script pkjss Programming 4 09-14-2011 04:23 AM
how to run an application from terminal mode 450Nappa Linux - Newbie 12 09-22-2008 03:51 PM
Editing terminal input prior to passing it to shell / application otho Linux - Software 4 09-10-2008 02:18 PM
Can double-click the shell script and choose "Run in Terminal" in Redhat? edwardsiow Programming 2 05-22-2006 08:56 PM
Run application from terminal with & yumener Linux - Software 1 10-31-2005 01:33 PM


All times are GMT -5. The time now is 11:31 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