DESEI-SELB
asked on
shell script question
I have a script was not sure what does it do:
"$JAVA_HOME/bin/java" \
"$OSGI_INSTALL" "$OSGI_CFG" \
$EXTRA_X_ARG \
$CONSOLE_ENCODING \
-Dcom.ibm.websphere.migrat ion.server Root="$WAS _HOME" \
-Dws.ext.dirs="$WAS_EXT_DI RS" \
-Dwas.install.root=$WAS_HO ME \
-Duser.install.root=$USER_ INSTALL_RO OT \
$PERF_JVM_OPTIONS \
$WAS_LOGGING \
$EXTRA_D_ARG \
-classpath "$WAS_CLASSPATH":"$WAS_HOM E"/derby/l ib/derby.j ar com.ibm.wsspi.bootstrap.WS PreLaunche r \
-nosplash -application com.ibm.ws.bootstrap.WSLau ncher com.ibm.ws.migration.WASPr eUpgrade "$@"
the reason I am asking is that I want to run the command WASPreUpgrade with an argument. where do I add that argument?
thanks,
"$JAVA_HOME/bin/java" \
"$OSGI_INSTALL" "$OSGI_CFG" \
$EXTRA_X_ARG \
$CONSOLE_ENCODING \
-Dcom.ibm.websphere.migrat
-Dws.ext.dirs="$WAS_EXT_DI
-Dwas.install.root=$WAS_HO
-Duser.install.root=$USER_
$PERF_JVM_OPTIONS \
$WAS_LOGGING \
$EXTRA_D_ARG \
-classpath "$WAS_CLASSPATH":"$WAS_HOM
-nosplash -application com.ibm.ws.bootstrap.WSLau
the reason I am asking is that I want to run the command WASPreUpgrade with an argument. where do I add that argument?
thanks,
ASKER
is "$@" only goes for WASPreUpgrade or for the other two application too(WSLauncher, WSPreLauncher)? thanks.
ASKER
also, the WASPreUpgrade is not being run from the command line but from a different script. so can I just add the argument at the end aftger "$@"?
thanks,
thanks,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks.
Just add the argument(s) to the command line.