Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I got some problem when I tried to run different programs via SSH.

The problem is, let's say I have 2 different java programs, then I would like to run them simultaneously on different JVM, in order to do this, I wrote a shell script to launch those 2 programs, when I tried on my local machine, it works fine, because I used command of gnome-terminal, so you can see tow terminals pop up and each of them has a single program to run but, when I use SSH to connect to a remote machine, I run the same program, some weird things happen, the terminals pop up one by one rather than pop up simultaneously, so those 2 programs don't run at the same time, but run first followed by another.

Is there any idea why this gonna happen?

I use

gnome-terminal -e "java myclass"

to launch the program

I use

./ params

to launch the shell script

I use

ssh -X user@server

to connect to the remote server

share|improve this question

migrated from Dec 3 '12 at 11:04

This question came from our site for professional and enthusiast programmers.

are you asking how to run two simultaneous programs in a single ssh session? It can be done with screen – Shiplu Dec 2 '12 at 21:42
Maybe, running first program asyncronously (java-1.6-v1 Main1 & java-1.7-v2 Main2) can help? – EarlGray Dec 2 '12 at 22:15

You must log in to answer this question.