Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-17-2008, 04:34 AM   #1
LQ Newbie
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
Thumbs up give a name in a new xterm and at the same time execute something

Ok guy Im having troubles to make this work..

I know there are different ways to name a xterm window like:

xterm -n "example_name1"
xterm -name "example_name2"
xterm -T "example_name3"
xterm -title "example_name4"

but in the same command I want to run at the same time a jar file, for example:

xterm -name "example_name2" java -jar proyect1.jar

anyone could explain me that please?
Old 12-17-2008, 04:39 AM   #2
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
I don't know about xterm but I know screen will do it and allow you to do a whole lot of fab things such as leave the console and keep the application running, then reconnect to it later on.

Hope this helps even if it's not exactly what you are after.

Old 12-17-2008, 04:44 AM   #3
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
xterm -name "example_name2" -e java -jar proyect1.jar

(-e stands for execute)


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
When I tries to execute the xterm i got this message: xterm: no available ptys johnsanty Other *NIX 4 09-20-2006 12:29 PM
Give user rights to execute program max2004 Linux - Newbie 7 11-30-2005 07:17 PM
Set the Xterm title to reflect the current time ! Bonch Linux - Newbie 11 10-25-2004 04:50 PM
Not able to give execute permissions needanyhelp? Linux - General 4 08-20-2004 05:19 AM
About time to give up :( Bullzeye Linux - Newbie 3 08-28-2003 12:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration