Find the answer to your Linux question:
Results 1 to 5 of 5
Is it possible to start an application in another terminal? Say, I am in the text terminal 6, and want to start a gnome application in terminal 7 (which is ...
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Posts
    9

    Question starting a application in another terminal

    Is it possible to start an application in another terminal?
    Say, I am in the text terminal 6, and want to start a gnome application in terminal 7 (which is Xterm)?

  2. #2
    Linux Newbie sdimhoff's Avatar
    Join Date
    Jan 2007
    Posts
    191
    From terminal 6:

    xterm -e gnomeapp &

    This will start a new xterm (terminal 7), execute gnomeapp from it and still allow you to use terminal 6 while xterm/gnomeapp is running.
    Linux since: 2001
    Gentoo since: 2004
    - - - - - - - -
    Translation:
    I fix things until they break.

  3. #3
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    I think what mvdberg112 meant was could you start an application in a terminal widow that's already opened...what your doing is launching Xterm with the addition instruction -e gnomeapp &...Gerard4143...sorry for the Hi-jack
    Make mine Arch Linux

  4. #4
    Linux Newbie sdimhoff's Avatar
    Join Date
    Jan 2007
    Posts
    191
    Thanks for the clarification. Unfortunately, I don't know how to do that.

    In lieu of an actual answer... would something like screen be able to suite your purposes? That way you could access that screen session from a different terminal.
    Linux since: 2001
    Gentoo since: 2004
    - - - - - - - -
    Translation:
    I fix things until they break.

  5. #5
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Quote Originally Posted by mvdberg112 View Post
    Say, I am in the text terminal 6, and want to start a gnome application in terminal 7 (which is Xterm)?
    Assuming you are using one of the VTs (say ctrl+alt+F6 if I get you) you can export your display.

    Your first X server should be :0, so export that as your application. You could do the following
    Code:
    export DISPLAY=localhost:0.0
    gnomeapp
    That's assuming you want it to run synchronously to show terminal output on VT6. You can just add an ampersand (&) to the end of your gnomeapp to fork it in the background.

    Note also, that I specified localhost. You can actually specify the display of another server altogether

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...