i'm writing a script in expect and want to save the output of an command in a variable. Is that possible? The command is
echo "text here"| base64
i know i can set a variable with "set" but
set var ["echo text here| base64"]
or
set var [ spawn "echo text here| base64"]
doesn't work. With that i'm just saving the string not the output.