shell script question

I have a script was not sure what does it do:

"$JAVA_HOME/bin/java" \
  -Dws.ext.dirs="$WAS_EXT_DIRS" \
  -Dwas.install.root=$WAS_HOME \
  -Duser.install.root=$USER_INSTALL_ROOT \
  -classpath "$WAS_CLASSPATH":"$WAS_HOME"/derby/lib/derby.jar \
  -nosplash  -application "$@"

the reason I am asking is that I want to run the command WASPreUpgrade with an argument. where do I add that argument?

Who is Participating?
simon3270Connect With a Mentor Commented:
If this script is being called from anaother one, you acn either add the argument to the calling script, or can add it here - the last bit of code would then read: "$@" your_argument

I'm not sure what java does when you pass three classes to it - I weould expect it to pass the arguments only to the last one.
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-SELBAuthor Commented:
is "$@" only goes for  WASPreUpgrade or for the other two application too(WSLauncher, WSPreLauncher)? thanks.
DESEI-SELBAuthor Commented:
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 "$@"?

DESEI-SELBAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.