Passing argument to java files through sh file
use $1 and $2 etc in sh file such as
inside run.sh write
java -cp ./lib/abc.jar com.test.myetes.NoadLoader $1 $2
Hello World. This is my First of First Blog. Here I will try to write things related to what I learn, Since I am kinda obsessed with Technology’s lineage. I, being a Java professional, love Java profoundly and so tried to make a blog that will help you and me of course to be in touch with new happenings in the field of technology. I may soon start a discussion forum based on Java, for that we need to wait a while, after all , not always, good things are FREE….
use $1 and $2 etc in sh file such as
inside run.sh write
java -cp ./lib/abc.jar com.test.myetes.NoadLoader $1 $2
Posted by Unknown at 12:32 PM
1 comments:
what if $1 contains "abc def" then it will treat $1 $2 as three different arguments.
Post a Comment