I want to execute following line in remote server
export EXTERNAL_IP=`hostname -I | awk '{print $1}'` && echo $EXTERNAL_IP
which fill EXTERNAL_IP on the remote host.
How should I write this line using ssh MyServer MyCommand
?
I want to execute following line in remote server
export EXTERNAL_IP=`hostname -I | awk '{print $1}'` && echo $EXTERNAL_IP
which fill EXTERNAL_IP on the remote host.
How should I write this line using ssh MyServer MyCommand
?