Normally when the output of a command is sent to a string in bash the following syntax is used:
variable="$(command)"
How do I do the same in a ssh query? Because doing something like
ssh user@address bash -c "'
variable="$(command)"
'"
seems to record nothing into the variable.