LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2013, 04:06 PM   #1
wonkapete
LQ Newbie
 
Registered: Oct 2013
Posts: 1

Rep: Reputation: Disabled
How to execute a command in a new window


I need to launch a new window, then execute a command in that window.

In my script, I have:

gnome-terminal -x ./test.sh

My test.sh is simply a call to a development shell.

The development shell launches into a new window and I'm at the cursor. Now, I want to execute 'Make Help'. How do I do this?
 
Old 10-11-2013, 09:37 PM   #2
joe_2000
Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 812

Rep: Reputation: 216Reputation: 216Reputation: 216
I am not sure this can be achieved in a gnome-terminal, but I just played around a bit with the xfce4 terminal and it has an option called "hold" which I think might be what you are looking for.
Code:
xfce4-terminal -H --command=./test.sh
Not sure if switching to another terminal emulator is acceptable for you?
 
  


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
Can I execute a shell command and put the result in command field? fran4tw Linux - General 9 08-08-2011 09:27 PM
.sh file execute in command window but not in cronjob a9b8c2 Linux - General 5 12-12-2010 10:14 AM
Only execute 2nd command on successufl execution of 1st command kregec05 Linux - Newbie 3 08-19-2009 11:29 AM
Execute a command , reboot and then execute another command ganeshp@moris.org Linux - Newbie 3 12-03-2008 01:51 AM
How to launch a command in a new window without pausing the referrer window? budhax Linux - Newbie 3 09-01-2008 12:01 AM


All times are GMT -5. The time now is 05:45 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration