Running program in the background

Running program in the background:

1. nohup <command> &;

e.g[1]+ Stopped startWebLogic.sh

[oracle@oardc-vm15 admin]$ 
 
nohup startWebLogic.sh &
 

2. <command>, then interaction with <command> such as provide user and password. after the interaction finished, the press CTRL+Z and input bg then <enter>

 e.g.

[oracle@oardc-vm15 admin]$ startWebLogic.sh
.
.
JAVA Memory arguments: -Xms256m -Xmx512m
.
WLS Start Mode=Production
.
CLASSPATH=:/u01/app/oracle/product/bea/patch_wlw1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/product/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/product/bea
...
<Jan 15, 2010 5:19:12 AM CST> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:
<Jan 15, 2010 5:20:39 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Jan 15, 2010 5:20:39 AM CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<Jan 15, 2010 5:20:39 AM CST> <Notice> <Log Management> <BEA-170019> <The server log file /u01/app/oracle/product/bea/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.>
...
<Jan 15, 2010 5:22:00 AM CST> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "AdminServer" for domain "base_domain" running in Production Mode>
<Jan 15, 2010 5:22:00 AM CST> <Warning> <Server> <BEA-002611> <Hostname "oardc-vm15.cn.oracle.com", maps to multiple IP addresses: 10.182.113.81, 127.0.0.1>
<Jan 15, 2010 5:22:01 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<Jan 15, 2010 5:22:01 AM CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>

  CTRL+Z

[1]+  Stopped                 startWebLogic.sh
[oracle@oardc-vm15 admin]$ bg
[1]+ startWebLogic.sh &

 

猜你喜欢

转载自fengyonghui.iteye.com/blog/571025
今日推荐