Pass space (or string escaped) as argument to shell script.
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: Code:
java -cp $CP App $1 $2 Code:
./AppShell SndMsg "Wellcome to my app" This happend to if I use: Code:
./AppShell SndMsg "Wellcome\ to\ my\ app" Code:
./AppShell SndMsg Wellcome\ to\ my\ app |
Solved, sorry the way is pass the shell variable between quotes, like this:
Code:
java -cp $CP App $1 "$2" Code:
./AppShell SndMsg "Wellcome to my app" |
All times are GMT -5. The time now is 09:57 AM. |