How to exit prompt when starting a weblogic administration server remotely?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to exit prompt when starting a weblogic administration server remotely?
# 1  
Old 01-26-2012
How to exit prompt when starting a weblogic administration server remotely?

Hi,

I am trying to start Weblogic Admin server using start-up script (./startWeblogic.sh) from a remote host using a different user. The server starts fine but prompt is stuck, it does not return

Background: We have multiple admin servers in different environment and the requirement is all has to be started/stopped from a central automation server which has a password less sudo connectivity to all Weblogic hosts.

I am using command :

Code:
ssh -l user remote-address '/spare/app/oracle/product/Middleware/user_projects/domains/example_domain/bin/./startWebLogenter code hereic.sh & > /dev/null < /dev/null'

As admin server is spawning a child shell, the parent shell is not closing and it keeps holding the prompt.

Please Advise.

Thanks,
Bhaskar
# 2  
Old 01-26-2012
Try this:

Code:
ssh -l user remote-address "your-command 2>&1 &"

# 3  
Old 01-26-2012
That may still leave open file descriptors and leave things open. Try nohup, that should close everything.

Code:
ssh user@host "nohup your-command & disown"

disown is only needed for bash and ksh.
This User Gave Thanks to Corona688 For This Post:
# 4  
Old 01-26-2012
Hi Cororna,

It worked. I tweaked a little

Code:
nohup /spare/app/oracle/product/Middleware/user_projects/domains/soa_domain/bin/./startWebLogic.sh & disown" > /dev/null < /dev/null 2>&1

Thanks a lot to both of you. I really appreciate this. Have a great day.

Cheers,
Bhaskar
# 5  
Old 01-26-2012
Quote:
Originally Posted by bhaskar_m
Hi Cororna,

It worked. I tweaked a little

Code:
nohup /spare/app/oracle/product/Middleware/user_projects/domains/soa_domain/bin/./startWebLogic.sh & disown" > /dev/null < /dev/null 2>&1

Putting it outside the quotes does the redirection on the local side, where it has no effect on the remote file descriptors that might otherwise hold the connection open.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Starting a process remotely

Hello all, Please, i try to start cassandra remotely but it didn't work. i don't find cassandra process when using ps aux|grep cassandra ssh -t root@g-8 -x "sshpass -p 'ubuntu' ssh -t root@10.147.243.163 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -x... (8 Replies)
Discussion started by: chercheur111
8 Replies

2. Solaris

Zone console login prompt exit

Hi , I am not able to exit fom zone console login prompt. I have tried options like ~. ~~. and @. but it is not working fo me. Could someone Please help me on this. Thanks in Advance!! Regards, Laxxi (7 Replies)
Discussion started by: Laxxi
7 Replies

3. UNIX for Dummies Questions & Answers

Auto-exit from telnet prompt

Hi, Hope all your are doing well. Need a suggestion from you. I am writing an automated shell script that will effectively check the telnet connectivity with different backends from present deployment server. Ideally, this script reads each backend hostname from a configuration file and fires... (4 Replies)
Discussion started by: bhaskar_m
4 Replies

4. Shell Programming and Scripting

Exit from Shell Prompt after Pbrun

I have a ksh script, which pbruns into another account. I want to pbrun run into that account, and continue running all the engine commands(i.e setroot, setsite xxx, etc) in my script. But instead, it pbruns into the account, and just gives me a shell prompt.. and stops there. Only once i... (2 Replies)
Discussion started by: alamurus
2 Replies

5. OS X (Apple)

How to prompt for login on OSX when starting Terminal

I was wondering if anyone can tell me how to log back in to unix after logging out. I have a MBPro. If I don't have the window close after exiting, then there is the phrase 'process completed' in brackets with a blinking cursor, but I can't type anything in. Is it also possible to start the... (4 Replies)
Discussion started by: Straitsfan
4 Replies

6. UNIX for Dummies Questions & Answers

difference weblogic server/webserver/app server

Hi All, I am getting confused with the terms below. All I know is an application can be installed on a server. But I see the following terms used in a company. All of them are installed on same Unix box. Could you please help me out in layman terms as to what these exactly means. (PS: I don't... (1 Reply)
Discussion started by: tostay2003
1 Replies

7. UNIX for Dummies Questions & Answers

Exit from telnet when run Remotely

ssh user@host -q -n 'grep `hostname` /etc/hosts; telnet 10.100.23.45 1234;' When i run this command remotely it is hanging and not giving me the prompt, Can anyone tell me how can I exit a telnet command remotely please. Thanks. (10 Replies)
Discussion started by: venu_nbk
10 Replies

8. UNIX for Dummies Questions & Answers

no $ prompt while starting console

I had this problem before but it started working OK for a while. I can create a new profile but when I launch the console for that user it does not show the $ prompt. It shows for su and I tried to set the terminal but I am not sure if I did it correctly since it does not work still. The... (9 Replies)
Discussion started by: softarch
9 Replies
Login or Register to Ask a Question