If passing the string via a file proves to be the only workable option for you, you could write a script that saves the string to a file, then runs the sudo command. This would simplify the users' interactions with your current script.
In reply to Re^5: sudo ignoring string entry after first space encountered ("$@")
by RonW
in thread sudo ignoring string entry after first space encountered
by perl197
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |