Results 1 to 2 of 2
Hi all,
I have created some new weblogic domains in linux machines and I migrated the related scripts. All works ok but the following.
In stop script it seems that ...
- 03-01-2011 #1Just Joined!
- Join Date
- Mar 2011
- Posts
- 1
migrate script from HP-UX
Hi all,
I have created some new weblogic domains in linux machines and I migrated the related scripts. All works ok but the following.
In stop script it seems that after the execution reaches the following command (which performs the actual shutdown of the server) the script lets say that it pauses(?) its execution. The server is actually stopped, but I found that to continue to execution of the script I need to hit Ctrl+C or Enter. I seems that some sort of user interaction is required.
The command is the following:
I am positive that all parameters are defined correctly. After all the script works. The only thing that comes to mind is the 2>&1 for redirection of the output. Could this need different syntax?Code:${JAVA_HOME}/bin/java -cp ${CLASSPATH} weblogic.Admin FORCESHUTDOWN -url ${URL} ${UIDPWD} ${SERVER_NAME} 2>&1
- 03-02-2011 #2Linux Newbie
- Join Date
- Nov 2008
- Location
- Tokyo, Japan
- Posts
- 243
No, all POSIX compatible Bourne shells use the same redirection syntax, and "2>&1" is perfectly valid; it is no different on Linux.
It may be simply that the weblogic.Admin program is stuck waiting for something to change on the system that never changes (or it might take a long time), and pressing CTRL-C is simply halting the Java class prematurely.
Have you tried not using redirection at all, or redirecting to separate files, e.g.If you still have the same problem, it is most likely not a problem of redirection.Code:$JAVA_HOME/bin/java StopServer 2>stop.err 1>stop.out


Reply With Quote