Hello, i need to pass a message to my Java, I use a shell script tu set all the environment.
I use this code inside the script:
java -cp $CP App $1 $2
But when i try to run the script and pass a string like this:
./AppShell SndMsg "Wellcome to my app"
"Wellcome to my app" is send as 4 differente arguments.
This happend to if I use:
./AppShell SndMsg "Wellcome\ to\ my\ app"
./AppShell SndMsg Wellcome\ to\ my\ app
How can i pass the second parameter as complete string to my shell and then passed to my java app.