I'm trying to make a script that uses variables from a remote script. Currently the script executes the remote script with an ssh user@server "/route/to/script.sh" command in the script. In that script I'm saving some variables. I wish to use these variables in my local script where I've began everything.
Any ideas how to do this?
Regards: Bert