Saturday, July 12, 2008

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

Sphere: Related Content

1 comments:

Anonymous said...

what if $1 contains "abc def" then it will treat $1 $2 as three different arguments.