remote ssh command java problem
I am facing a acute problem dealing with java , I execute a remote java program through password less remote log in ssh.
if I execute that program after login into server , it execute fine with single process of java .
/home/jboss/./run.sh -b 0.0.0.0 &
but if I execute same process from remote ssh command it starts two java process and goes in deadlocal.
ssh -l user server /home/jboss/./run.sh -b 0.0.0.0 &
on linux I have java at:
i created softline for path like ln -s /home/sun/jdk1.6.0_24 current
and ln -s /home/sun/current/bin/java /usr/bin/java
but while starting jboss server from remote ssh, it start two jboss process one from using /home/sun/current/bin/java and another from /home/sun/jdk1.6.0_24/jre/bin/java
I want to avoid jre java process, but why it starts two process from remote ssh command execution only why not locally ?