in reply to Re^4: sudo ignoring string entry after first space encountered ("$@")
in thread sudo ignoring string entry after first space encountered

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.

  • Comment on Re^5: sudo ignoring string entry after first space encountered ("$@")