Hi,
We have Weblogic Servers running on Linux (red hat ver 4). One of the things that I am trying to do is to start the Weblogic managed instance remotely using SSH. So here is the scenario:
I have Linux Server A - has Weblogic Admin and Sever B has the Weblogic Managed instance.
Script A.sh resides on Server A and Script B.sh resides in sever B. Script B.sh starts the weblogic managed instance (that is basically a java process)
Now, Script A.sh has the SSH command to connect to server B and execute the B.sh Script and then proceeds with other tasks.So Script A.sh looks like this:
#Script A.sh
echo "Start A.sh...."
....
....
SSH user@ServerB B.sh
echo "creating file..." > test.txt
echo "status=" $? >> test.sh
....
Now, the problem that I am stuck with is, when I execute the script A.sh, the SSH command executes and starts the B.sh script in server B (whcih executed fine), but the control never comes back. SO the test.txt file never gets created. It just hangs after the SSH is executed.
I have already tried the folloing things:
1. Runing the B.sh in the background process
2. Added exit at hte end of B.sh script.
But nothing seems to work so far.
Any help would be great..
Pat
We have Weblogic Servers running on Linux (red hat ver 4). One of the things that I am trying to do is to start the Weblogic managed instance remotely using SSH. So here is the scenario:
I have Linux Server A - has Weblogic Admin and Sever B has the Weblogic Managed instance.
Script A.sh resides on Server A and Script B.sh resides in sever B. Script B.sh starts the weblogic managed instance (that is basically a java process)
Now, Script A.sh has the SSH command to connect to server B and execute the B.sh Script and then proceeds with other tasks.So Script A.sh looks like this:
#Script A.sh
echo "Start A.sh...."
....
....
SSH user@ServerB B.sh
echo "creating file..." > test.txt
echo "status=" $? >> test.sh
....
Now, the problem that I am stuck with is, when I execute the script A.sh, the SSH command executes and starts the B.sh script in server B (whcih executed fine), but the control never comes back. SO the test.txt file never gets created. It just hangs after the SSH is executed.
I have already tried the folloing things:
1. Runing the B.sh in the background process
2. Added exit at hte end of B.sh script.
But nothing seems to work so far.
Any help would be great..
Pat