Answer the question
In order to leave comments, you need to log in
How to separate arguments in a line in bash for a strace program?
Example
exePath="path_to_program";
exeArgs="--param1=sdfsdf --param2=sdfdf"
strace -xf -o 'path' "$exePath" "$exeArgs"
The program launched in strace takes only one param1 parameter, with a string value with all parameters.
Answer the question
In order to leave comments, you need to log in
You have too many quotes
exePath="path_to_program";
exeArgs="--param1=sdfsdf --param2=sdfdf"
strace -xf -o path $exePath $exeArgs
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question