LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-31-2011, 07:40 AM   #1
sunlinux
Member
 
Registered: Feb 2006
Distribution: RHCL 5
Posts: 237

Rep: Reputation: 30
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 &

background:

on linux I have java at:
/home/sun/jdk1.6.0_24/

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 ?
 
  


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
[SOLVED] Remote command execution via SSH and newgrp command SuperMegaMau Linux - General 4 05-13-2011 08:31 AM
Escape command for remote ssh execution brianmcgee Linux - Software 2 06-14-2010 07:34 AM
SSH remote command not timing out tajsss Other *NIX 5 04-28-2005 07:57 AM
Adding users via ssh remote command enolc Linux - Software 2 05-27-2004 07:48 AM
remote command over ssh, password prompt linowes Linux - General 2 10-27-2002 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:45 PM.

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