About
Pricing
Community
Teams
Start Free Trial
Log in
DESEI-SELB
asked on
3/14/2012
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,
Linux
5
1
Last Comment
DESEI-SELB
8/22/2022 - Mon
simon3270
3/14/2012
The script already passes any arguments to the WASPreUpgrade program as "$@" at the end of the last line.
Just add the argument(s) to the command line.
DESEI-SELB
3/14/2012
ASKER
is "$@" only goes for WASPreUpgrade or for the other two application too(WSLauncher, WSPreLauncher)? thanks.
DESEI-SELB
3/14/2012
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,
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
simon3270
3/14/2012
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
DESEI-SELB
4/10/2012
ASKER
thanks.
Just add the argument(s) to the command line.