I have two scripts that are being run. One runs from a client workstation and calls a script on a server. I need a variable from the server script and I figured I could do it this way, but it isn't working:
#!/bin/sh
local_var=""
ssh user@server " $local_var=\$server_var "
echo "$local_var"
My output of local_var is null. Is there a way to do this?