Search Results

Search: Posts Made By: Timo
17,170
Posted By Timo
Thank you. It works now with minor adjustment as...
Thank you. It works now with minor adjustment as follows:

If the SomeExecutable is like this

$ cat SomeExecutable
echo SOME EXECUTABLE HERE
echo ARGS ARE
echo "P1="$1
echo "P2="$2

Then...
17,170
Posted By Timo
Thanks for the response. Are you suggesting ...
Thanks for the response.
Are you suggesting

CMD="SomeExecutable"
CMD_IN='--name="TIMO 2"'
CMD_OUT=`$CMD $CMD_IN`

Still, I get the following

SomeExecutable '--name="TIMO' '2"'

Not...
17,170
Posted By Timo
How to pass a parameter with double quotes around it to a command
In a bash script, I need to pass a parameter that has space in-between using double quotes as follows:

CMD="SomeExecutable"

# Parameter that has a space in-between
PARAM1="TIMO 2"
...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 10:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy